Ask a Teacher



is the access label 'private' valid for the member function in a class when we give definition before main function or after?

Private members (data and functions) are hidden  from the outside world and they implement the OOP concept  data hiding .That is,these members can only be used by the member functions and friend functions of the class in which they are declared.


comments powered by Disqus