Definitions for OOP Flashcards

1
Q

What is a class?

A

It’s the blueprint for defining methods and attributes that can be used to create objects

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

What is an object?

A

An instance of a class

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

What is a method?

A

What actions an object can do

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

What is an attribute?

A

What an object is or has

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

What is inheritance?

A

It’s the concept of sub-classes inheriting methods and attributes from its parent class (super class)

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

What is encapsulation?

A

It the process of bundling methods and attributes into a class

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

What is polymorphism?

A

A concept that allows objects to take on different forms

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