1a. OOP Refresher Flashcards

1
Q

What is a class?

A

A class is a blueprint for creating objects of a particular type.

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

What are methods?

A

Methods are regular functions that are part of a class.

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

What are attributes?

A

Attributes are variables that hold data that are part of a class.

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

What is an object?

A

An object is a specific instance of a class.

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

What is inheritance?

A

Inheritance is the means by which a class can inherit capabilities from another class.

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

What is composition?

A

Composition is the means of building complex objects out of other objects.

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