Thursday, July 29, 2021

What is object oriented programming

 Object Oriented Programming normally known as OOP is a programming technique used to solve real world problems using programming. Before the use of Object Oriented Programming in linear programming approaches it was very difficult to solve real world problems using computer programming because in real world the objects has different characteristics that cannot be assigned in computer programming. For example a human has characteristics like name, age, gender, height, weight and also performs some functions like walking, talking, listening, running, thinking, loving, caring and sleeping so these functions cannot be performed well by traditional programming approaches. Object Oriented Programming divided characteristics in two parts attributes and behaviors. Attributes contains specific characteristics that object possess those differentiate one object from other object. like car name, model etc and behavior consists the functions of that object like car runs, stops etc. After classifying object into attributes and behaviors it is very easy to make classes of that entity. Hence in this way code can be reduced a lot and also can be reused again and again. The power of Object Oriented Programming is not only code reusability it has much powerful features like abstraction, encapsulation, inheritance, polymorphism. With these powerful features complex programming problems are solved easily. OOP reduces the complexities of procedural programming function calls and unwanted data access.

No comments:
Write comments