What is the name of the Java concept that uses access modifiers to protect variables and
hide them within a class?
A.
Polymorphism
B.
Instantiation
C.
Encapsulation
D.
Inheritance
E.
Abstraction
What is the name of the Java concept that uses access modifiers to protect variables and
hide them within a class?
What is the name of the Java concept that uses access modifiers to protect variables and
hide them within a class?
A.
Polymorphism
B.
Instantiation
C.
Encapsulation
D.
Inheritance
E.
Abstraction
C
c
Answer is C: As Encapsulation says, protecting Class variables using assess modifier to direct access.
Answer: C.Encapsulation