programplug Logo

C++ OOP Concept

C++ support object-oriented programming concept.In C++, we can easily create and use classes and objects.By using OOP's develop many applications.

Some Important concept of object-oriented programming are given below-

  • Class
  • Object
  • Method
  • Inheritance
  • Polymorphism
  • Data Abstraction
  • Encapsulation


Class describe properties and method of an object.In other world class is a description of an object.Class is a blueprint or a set of instruction to build a specific type of object.

class class_name
   field or data member or method
   field or data member or method
   field or data member or method


Object is self-contained component which consists of methods and properties.In C++ is an object, and almost everything has attributes and methods.

class_name object_name;


Method is special kind of function that is associated with an object.Any object type can have methods.


It is a process by which object of one class aquire the properties or features of objects of another class.Inheritance is useful for "Reusability of codes".


Polymorphism is made by two words "poly" and "morphs".Polymorphism means ability to take more than one form "Many Forms Of Data".The behaviour depends upon the types of data used in operations.

Data Abstraction

Abstraction is a process used to hide internal details and show only functionalities.


Combining data and functions(method) into a single unit called class and the process is known as Encapsulation.Encapsulation is used to restrict access of methods and variables "Data Hidden".

class School 
  int id;     
  string name;    
void main() 
 School s;  //Calling = 1; = "Rahul";   
 cout<< << endl;  
 cout<< << endl;    

output :

Our Services

Developing Cheapest Websites
Offer Digital Marketing
Provide College Projects
Attractive Website Developing
Summer Training,Industrial Training

Contact Us

Dehradun Uttarakhand India

Other Link

About Us

Contact Us


Privacy Policy