2080.1 11

Object Oriented Programming2080.15 marksAccess Specifiers

Explain the practical implication of protected specifier in inheritance. List advantages and disadvantages of inheritance.

Explain the practical implication of protected specifier in inheritance. List advantages and disadvantages of inheritance. [5]

"Protected access specifier is similar to that of private access specifiers, the difference is that the class member declared as protected are inaccessible outside the class but they can be accessed by any subclass (derived class) of that class." The protected specifier plays a crucial role speci...

Up nextWrite short notes on: a. This pointer b. ios member function