Object oriented programming
What are the four principles of OOP?
- Encapsulation - Bundling methods into a single unit and restricting access.
- Abstraction - Hiding implementation details and exposing only the necessary parts of an object.
- Inheritance - Creating a new class based on an existing class, allowing for code reuse and the creation of hierarchical relationships.
- Polymorphism - Different classes treated as the same type through a common interface, allowing for flexibility and the ability to define methods in different ways.