C++ OOPS

OOPS (Object Oriented Programming Language)



  • Focus is given on data.
  • Data security is provided, data can not be accessible to all the functions.
  • Easy to represent real life problems.
  • Complexity of code is reduced by using classes and object.
  • Programmer can develop faster and accurate applications.
  • Whole Program is divided into objects.
  • Easy to write and design application.


Concept Of OOPS



Various concepts of OOPS which are as follow:

  • Object: Anything having properties and behavior is known as an object. In C++, object is variable of a class.
  • Class: Class may be defined as a collection of similar objects.
  • Abstraction: It is the way to represent essential things without going into background details. Main benefit of abstraction is Security of code and data as they are hidden from user.
  • Encapsulation: It is the way to combine data and functions which operate on data under one unit. It prevents misuse of the data by external components of the program.
  • Inheritance: It is the process in which an object/class derives properties of another object/ class. It is also defined as deriving a new class from an existing class without modifying it.
  • Polymorphism: It consists of two words “Poly” means many and “Morph” means forms. Ability to take many forms.
  • Modularity: Modularity is the process of decomposing a bigger problem into smaller parts. Using modularity become easier to locate and correct errors in the program.
  • Dynamic Binding: In dynamic binding, linking the code with function call is done by the compiler during runtime of the program. It provides flexibility to reuse and extend classes.
  • Message Passing: Object can communicate with each other. It involves sending message from one object to another.
Back To Top