OOP Flashcards
Constructors
The functions that create new objects
Default constructor
The function that is automatically made when you create a class
Parameterized constructor
A specific function you make for a class.
Constructor Overloading
Creating multiple constructors for a class
Inheritance
A child/subclass getting all objects and properties of parent/superclass.
Single inheritance
One subclass and one superclass
Multilevel Inheritance
A grandfather class, a parent & child class, and a child only class
Hierarchial inheritance
Multiple child classes, one parent class
Polymorphism
The nature of a child class being able to operate as its parent class
Encapsulation
Setting things to public or private, making objects only use their own stuff. Compartmentalisation
Abstraction
Making tools within the code, not for the end product.
Generalization
Reverse Inheritance, making a class out of the characteristics of other classes
Abstract class
A class that isn’t used, only inherited. You must begin with Abstract when making it
Abstract method
An unimplemented method with abstract
Switch
Like a logical statement, but with many diferent cases. Like what I did with the project for Abba