Computer Science, asked by Wang7, 1 year ago

how can you access data members and member method through an object

Answers

Answered by shahilraj344
2
The basic concept(about any member, be it data member or member function) is, if it is public, it can just be accessed by object reference, if it is private/protected, only the memberfunctions of the class can access it.
Similar questions