Java - Packages and Access Control
You want to allow access to a variable only to subclasses, even if they are in different packages, but not to other classes in the same package. How can you achieve this in Java?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions