Hi Guys,
I wanted to know that if we have a class of student as:
-------------------------------------------------------------------Code:class student { private: int roll_no; char name; int age; public: int getroll_no(); char getname(); }; main() { char student :: getname() int student :: getroll_no() }
If we use the codes in bold is it possible that we can access the private data members of the class using the functions in public?
Thanks



LinkBack URL
About LinkBacks



