Multiple Choice
Why does using the protected access modifier compromise encapsulation?
A) Multiple classes can set the value of an instance variable defined in another class.
B) When a class does change a protected value, there is added maintenance complexity.
C) Subclass methods that directly set the value of a protected instance variable need to be verified.
D) When high performance is essential, superclass methods can be used to change the value of protected variables.
Correct Answer:

Verified
Correct Answer:
Verified
Q48: A class must implement at least one
Q49: Which of the following is the correct
Q50: Abstract methods can be called.
Q51: We can instantiate an object from an
Q52: Abstract methods can be private.
Q54: When a class implements an interface:<br>A) it
Q55: We can instantiate an object from an
Q56: Which of the following is correct regarding
Q57: When calling the constructor of a superclass
Q58: Because the private instance variables of a