What is the OOP principle code example
Example 1: oop principles
Abstraction (Partial Abstraction & Interfaces)
Encapsulation (Private Field & Getter & Setter)
Inheritance (Super and Sub Class)
Polymorphism (Static - Overloading & Dynanmic - Overriding)
Example 2: what is oop and how it works
Object Oriented programming (OOP) is a programming
paradigm that relies on the concept of classes and
objects. It is used to structure a software program into
simple, reusable pieces of code blueprints (usually called
classes), which are used to create individual instances of objects.