4 Pillars of Java OOP Flashcards
What are the Four Pillars of Java OOP
- Encapsulation
- Inheritance
- Polymorphism
- Abstraction
This is to make sure that sensitive data is hidden from users.
Encapsulation
This can declare a class variable/attributes as _____
Private
This provide public ____ and ____ methods to access and update the value of a private
Get and Set Methods
This creates new classes based on existing ones.
Inheritance
This is the class that inherits from another class
Subclass or Child
This is the class being inherited
Superclass or Parent
This allows us to perform a single action in different ways.
Polymorphism
This is the process of hiding certain details and showing only essential information to the user.
Abstraction
This is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class)
Abstract Class
This can only be used in an abstract class, and it does not have a body. The body is provided by the subclass.
Abstract Method