Question: A method or instance variable modified by protected: can not be accessed by name inside its own class definitions. can not be accessed by name
A method or instance variable modified by protected:
can not be accessed by name inside its own class definitions.
can not be accessed by name inside any class derived from it
can not be accessed by name in the definition of any class in the same package.
can be accessed by name in any class in the same package and in a derived class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
