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
2
Q
What is an object?
A
An instance of a class
3
Q
What is a method?
A
What actions an object can do
4
Q
What is an attribute?
A
What an object is or has
5
Q
What is inheritance?
A
It’s the concept of sub-classes inheriting methods and attributes from its parent class (super class)
6
Q
What is encapsulation?
A
It the process of bundling methods and attributes into a class
7
Q
What is polymorphism?
A
A concept that allows objects to take on different forms