Concept Of Object Oriented Programming

Object:

This is the basic unit of object-oriented programming. That is both data and functions that operate on data are bundled as a unit called an object.

concepts-of-oop

Class:

When you define a class, you define a blueprint for an object. This does not actually define any data, but it does define what the class name means, that is, what an object of the class will consist of and what operations can be performed on such an object.


Inheritance:

The ability to create a new class from an existing class is called Inheritance. Using inheritance we can create a Child CLass from a Parent Class such that it inherits the properties and methods of the parent class and can have its own additional properties and methods.


Polymorphism:

The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.


Abstraction:

It refers to providing only essential information to the outside world and hiding their background details.


Encapsulation:

Encapsulation is a process of binding data members and member functions into a single unit. It is also a way of restricting access to certain properties or components.

No comments:

Post a Comment