The OOP is a design philosophy. It stands for Object Oriented Programming. Object-Oriented Programming (OOP) uses a different set of programming languages than old procedural programming languages (C, Pascal, etc.). Everything in OOP is grouped as self sustainable "objects". Hence, you gain re-usability.
**The important features of Object Oriented programming are:
Inheritance - Inheritance is the method by which objects of one class get the properties of objects of another class. In object-oriented programming, inheritance provides the thought of reusability.
Objects - Objects are primary run-time entities in an object-oriented programming. Objects occupy space in memory. Every object has its own properties or features.
Classes - Class is a grouping of objects having identical properties, common behaviour, and shared relationship. Once a class has been declared, the programmer can create a number of objects associated with that class.
Inheritance - Inheritance is the method by which objects of one class get the properties of objects of another class. In object-oriented programming, inheritance provides the thought of reusability.
Objects - Objects are primary run-time entities in an object-oriented programming. Objects occupy space in memory. Every object has its own properties or features.
Classes - Class is a grouping of objects having identical properties, common behaviour, and shared relationship. Once a class has been declared, the programmer can create a number of objects associated with that class.
Encapsulation - The packing of data and functions into a single component is known as
encapsulation. The data is not accessible by outside functions. Only
those functions that are able to access the data are defined within the
class. With encapsulation data hiding can be accomplished.
Polymorphism - Polymorphism makes possible the same functions to act differently on different classes. It is an important feature of OOP concept and has the ability to take more than one form.
Dynamic Binding - Binding means connecting one program to another program that is to be executed in reply to the call. Dynamic binding is also known as late binding.
Message Passing - Object-oriented programming includes objects which communicate with each other. Programming with these objects should be followed in steps shown below:
Dynamic Binding - Binding means connecting one program to another program that is to be executed in reply to the call. Dynamic binding is also known as late binding.
Message Passing - Object-oriented programming includes objects which communicate with each other. Programming with these objects should be followed in steps shown below:
(1) Declaring classes that define objects and their actions.
(2) Declaring objects from classes.
(3) Implementing relation between objects.
Comments