What is the name of the Java concept that uses access m…

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.
Encapsulation

B.
Inheritance

C.
Abstraction

D.
Instantiation

E.
Polymorphism

Explanation:
Using the private modifier is the main way that an object encapsulates itself and hide data from the outside
world.
http://www.tutorialspoint.com/java/java_access_modifiers.htm



Leave a Reply 1

Your email address will not be published. Required fields are marked *