All IT and Non IT Interview Questions, MCQs, Online Quiz Questions, Engineering VIVA Questions
Home » Unlabelled » Should the member functions which are made public in the base class be hidden? | C++
Tuesday, 17 April 2012
Should the member functions which are made public in the base class be hidden? | C++
As the public member functions of the base class are necessary to implement the public interface of the class, the member functions which are made public in the base class should never be hidden. When you are designing a class, make the derived data members private because a private member of the derived class is accessed through the protected or public member functions of the base class.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment