What is Object-oriented programming(OOP)?
What is Object Oriented Programming?
Features of Object Oriented Programming
1) Data 's which are present in a function can be easily modified using Object Oriented Programming. 2) Similar to bridges which connects two areas on two sides of river, the objects acts as bridge to have data transfer between two functions.3) Unlike Procedure Oriented Programming which gives emphasis on functions, Object Oriented Programming gives emphasis on data items.
4) Object Oriented Programming can be used to solve complex programs as it make the program simpler by dividing it into many objects.
Basic Principles of Object Oriented Programming
The basic principles of Object Oriented Programming are as follows-
--Objects- Objects are unique, self-contained entity which contains both data and functions in an OOP. An object uses the concept of message passing. It can send and receive data from another object.

--Data Abstraction-Abstraction refers to the act of picking essential features with the exclusion of background details. Classes which use the property of abstraction are called abstract data type.
--Encapsulation- The wrapping up of methods as well as data into a single unit is called encapsulation.
--Data hiding- The process by which data can be hidden from a class, although they are present in the the program, is called data hiding.
--Inheritance- Inheritance actually means "the acquired characteristics". It is an important feature of Object Oriented Programming by which objects of one class can link and share data from the objects of another class.
-- Polymorphism- It is one of the most important feature of Object Oriented Programming. By using this feature we can use a function for more than one tasks or purposes. Although the internal structure of the object changes but the external structure remains the same.
No comments: