Card 56 / 76: The private and protected access modifiers can be used with which entities? (Choose all that apply.)
A)
Classes
B)
Interfaces
C)
Constructors
D)
Methods
E)
Data members
Answer:
C) Constructors
D) Methods
E) Data members
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
The private and protected access modifiers can be used with constructors, methods, and data members.
A and B are incorrect.
The private and protected access modifiers cannot be used with classes and interfaces.
|