OOPS (Object Oriented Programming) Properties
OOPS (Object Oriented Programming) properties Encapsulation – The programmer can hind the data and function in class from other classes. It is accomplished through assess modifier. Abstraction – Allow us to define a common definition of a base class that multiple derived classes can share. Abstract class is the example of this property Polymorphisms – One interface with many different forms. There are 2 types of polymorphisms. · Compile Time – Function and operator overloading · Run Time – Inheritance & virtual function Inheritance – Class includes the properties of another class. It represents the relationship between two classes where one type drives the functionality of second type. Classes – Primary building blocks of OOPs. It also serves as a templet that describe property, methods etc. Object – Object is an instance of a class in OOP. It can be a ...