InterviewSolution
Saved Bookmarks
| 1. |
Differentiate between private and protected visibility modifiers. |
|
Answer» The data members defined under Private visibility modifiers are visible only to the class to which they belong. Where as the data members defined under Protected visibility modifiers are visible not only to the class to which they belong but also to any subclasses using inheritance. |
|