OOP Flashcards

1
Q

What is encapsulation?

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

What is abstraction?

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

What is inheritance?

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

What is Polymorphism?

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

What is the difference between an abstract class and an interface?

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

How does Java achieve runtime polymorphism?

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

What are constructors in Java? How is constructor overloading different from method overloading?

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

What are access modifiers in Java and how do they support encapsulation?

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

What is the difference between == and .equals() in Java?

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

Can you explain the concept of “IS-A” vs. “HAS-A” relationships in Java?

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