Procedure-oriented vs object-oriented programming, and the four principles: abstraction, encapsulation, inheritance and polymorphism.
In this chapter
- Procedure oriented vs object oriented programming (POP vs OOP)
- Objects: state (attributes) and behaviour (methods)
- Data abstraction: show the essentials, hide the details
- Encapsulation and data hiding with private data
- Inheritance: superclass, subclass and extends
- Polymorphism: one name, many forms (method overloading)
- Exam tips: spotting the principle in a situation