protected tag

1 questions


1 answers
80 views
0
An Understanding of Protected Access Control Modifiers in Java

There is a class called A in package1 and a class called C in package2. Class C is a subclass of A.A defined the instance field protectedInt:protected int protectedInt = 1;Class A:package package1;pub...


© 2024 OneMinuteCode. All rights reserved.