1a. OOP Refresher Flashcards
1
Q
What is a class?
A
A class is a blueprint for creating objects of a particular type.
2
Q
What are methods?
A
Methods are regular functions that are part of a class.
3
Q
What are attributes?
A
Attributes are variables that hold data that are part of a class.
4
Q
What is an object?
A
An object is a specific instance of a class.
5
Q
What is inheritance?
A
Inheritance is the means by which a class can inherit capabilities from another class.
6
Q
What is composition?
A
Composition is the means of building complex objects out of other objects.