(e) Name any two types of access specifiers.
Answers
Answered by
4
Ans. public, private, protected and default/package access specifiers
Answered by
1
Moving ahead to type of access specifiers, they are:
Public - The members declared as Public are accessible from outside the Class through an object of the class.Protected - The members declared as Protected are accessible from outside the class BUT only in a class derived from it.
Public - The members declared as Public are accessible from outside the Class through an object of the class.Protected - The members declared as Protected are accessible from outside the class BUT only in a class derived from it.
Similar questions