What are the OOPS concepts ?

The OOPs Concepts are,

  • Objects
  • Classes
  • Abstraction
  • Encaptulation
  • Inheritance
  • Polymorphism
  • Dynamic binding
  • Messege passing

Objects

  • An object is an abstraction of a real-world entity. It may represent a person, a place, a number and icons or something else that can be modelled. Any data in an object occupy some space in memory and can communicate with each other.
C++ Class Object

Classes:

  • A class is a collection of objects having common features. It is a user defined datatype which has data members as well functions that manipulate these data’s.
Abstraction:
  • It can be defined as the separation of unnecessary details or explanation from system requirements so as to reduce the complexities of understanding requirements.

Encapsulation:

  • It is a mechanism that puts the data and function together. It is the result of hiding implementation details of an object from its user.The object hides its data to de accessed by only those functions which are packed in the class of that object.

Inheritance:

  • It is the relationship between two classes of object such that one of the classes ,the child takes all the relevant features of other class the parent. Inheritance bring about reusability.
multiple inheritance

Polymorphism:

  • Polymorphism means having many forms that in a single entity can takes more than one form. Polymorphism is implemented through operator overloading and function overloading.
polymorphism in C++

Dynamic Binding:

  • Dynamic binding is the process of resolving the function to be associated with the respective functions calls during their runtime rather than compile time.

Message Passing:

  • Every data in an object in oops that is capable of processing request known as message .
  • All object can communicate with each other by sending message to each other

Categorized in:

Tagged in:

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,