Question: Some programmers prefer not to use protected access, because they believe it breaks the encapsulation of the base class. Discuss the relative merits of using
Some programmers prefer not to use protected access, because they believe it breaks the encapsulation of the base class. Discuss the relative merits of using protected access vs. using private access in base classes.
Step by Step Solution
3.31 Rating (169 Votes )
There are 3 Steps involved in it
Private instance variables are hidden in the derived class and are accessible only throug... View full answer
Get step-by-step solutions from verified subject matter experts
