Any kind of programming language that uses programming language with some object oriented programming is known as object oriented programming. Object oriented programming (OOP) is a programming pattern that uses object and their cooperation to layout computer programs and applications. This programming language organized around objects rather than actions and data rather than logic.
It is a programming pattern which is associated with the concept like class, object, inheritance, encapsulation, abstraction, polymorphism. Most Popular programming language like Java, C++, c# and etc follow object oriented programming pattern.
Types of Object Oriented Programming.
- Data Abstraction & Encapsulation.
A) Object:- Object is the main basic unit for the object oriented programming. Object is determine by its particular name and represent particular instance of a class. There can be more than one instance of class.
B) Class:- Classes are data form based on which object are design. Object with same property and technique are grouped together to form a class. A class represent a set of separate objects.
C) Data Abstraction & Encapsulation:- The wrapping up of the data and functions into a specific unit is known as encapsulation. When Data Encapsulation is being in used, at that time data is not accessed directly. It is accessibly through the function presented in the class.
Data Abstraction is used to increase the power of programming by creating user defined data.
D) Inheritance:- Inheritance is the process of creating a new class from an existing class and to that existing class we can call parent class and to new one we can call child class. Inheritance process is used to reduce the overall size of code of programming. Which is a vital in object oriented programming.
E) Polymorphism:- Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in object oriented programming occurs when parent class reference is used to refer child class objects.
We all know that how to create objects, get/set properties and call methods, but object oriented programming is more than that. And to get more than that visit here at object oriented programming training Indore.