Question: Assume there is a class Bouncer with a protected variable. Methods in which class can access this variable? A. Any subclass of Bouncer or any
Assume there is a class Bouncer with a protected variable. Methods in which class can access this variable?
A. Any subclass of Bouncer or any class in the same package as Bouncer
B. Any superclass of Bouncer
C. Only subclasses of Bouncer
D. Only classes in the same package as Bouncer
E. None of the above
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
The correct answer is A Any subclass of Bouncer or any class in the same package as Bouncer In Java ... View full answer
Get step-by-step solutions from verified subject matter experts
