proteced class can access can be accessed in other class code example
Example: proteced class can access can be accessed in other class
Protected access modifier is similar to that of private access modifiers, the difference is that the class member declared as Protected are inaccessible outside the class, but they can be accessed by any subclass