Object Oriented Programming:-
OOP_is a design philosophy.Object-OrientedProgramming (_OOP) uses a different set of programming languages than old procedural programming languages (C, Pascal, etc.). Everything inOOP_is grouped as self sustainable "_objects". Hence, you gain reusability by means of four main object-oriented programming concepts.
In order to clearly understand the object orientationmodel, let’s take your “hand” as an example. The “hand” is a class. Your body has two objects ofthetype"hand", named"left hand"and"right hand". Their main functions are controlled ormanaged by a set of electrical signals sent through your shoulders (through an interface). So the shoulder is an interfacethatyour body uses to interact withyour hands. The hand is a well-architected class. The hand is being reused to create the left hand and the right hand by slightly changing the properties of it.
Object Oriented Programming (OOP) is a programming model where programs are organized around objects and data rather than action and logic.
OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects.
- The software is divided into a number of small units called objects. The data and functions are built around these objects.
- The data of the objects can be accessed only by the functions associated with that object.
- The functions of one object can access the functions of another object.