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. You can find more details about the access modifier on here
Public
Private
Protected
Internal
Protected Internal
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
Polymorphism – 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 OOP's. It also serves as a template that describe property, methods etc.
Object – Object is an instance of a class in OOP. It can be a combination of variables, functions and data structure.
Property To expose an internal data element of a class in a simple and intuitive manner.
No comments:
Post a Comment