is an access modifier which provides access level to a particular class and any other classes derived from it. In other words, a type with protected
keyword can be accessed only by its class members or any other derived class members.
protected class MyClass
Asked In: Spotted While Learning |