OOP
Encapsulation
- Encapsulation refers to the combining of data and functions into a single object
Inheritance
- Exists when one object is a specialised version of another object
- Object has all the characteristics of the general object plus unique characteristics
Polymorphism
- Polymorphism refers to an object’s ability to take different forms
- It allows subclasses to have methods with the same name as methods in their superclass
- It gives the ability for a program to call the correct method depending on the type of object that is used to call it