Object-Oriented Principles
OOP is governed by four main principles, as follows. Throughout the rest of this lesson, we will delve further into each of these principles:
Inheritance: We will learn how we can reuse code by using hierarchies of classes and inheriting behavior from derived classes
Encapsulation: We will also look at how we can hide the implementation details from the outside world while providing a consistent interface to communicate with our objects through methods
Abstraction: We will look at how we can focus on the important details of an object and ignore the other details
Polymorphism: We will also have a look at how we can define abstract behaviors and let other classes provide implementations for these behaviors