4 Pillars of Java OOP Flashcards

1
Q

What are the Four Pillars of Java OOP

A
  1. Encapsulation
  2. Inheritance
  3. Polymorphism
  4. Abstraction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

This is to make sure that sensitive data is hidden from users.

A

Encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This can declare a class variable/attributes as _____

A

Private

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

This provide public ____ and ____ methods to access and update the value of a private

A

Get and Set Methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

This creates new classes based on existing ones.

A

Inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

This is the class that inherits from another class

A

Subclass or Child

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

This is the class being inherited

A

Superclass or Parent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

This allows us to perform a single action in different ways.

A

Polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

This is the process of hiding certain details and showing only essential information to the user.

A

Abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

This is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class)

A

Abstract Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

This can only be used in an abstract class, and it does not have a body. The body is provided by the subclass.

A

Abstract Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly