Object Oriented Programming Concepts - OOP Concepts

Object Oriented Programming(OOP) Concepts - Article which gives definitions for all 5 OOP concepts(5 pillars of OOP) which are essential to understand basics of any OOPL(like C#,VB.NET,JAVA,C++).Any OOPL should support these concepts.

object oriented programming concepts - OOP Concepts

If any language is to be called as OOPL(Object-Oriented Programming Language) then it should support the following 5 concepts (pillars) of OOP.They are:-

  1. class

  2. object

  3. Data Abstraction and Encapsulation

  4. Inheritance

  5. Polymorphism


Class is a definition(or description) for collection of similar objects.That is why people define class as "Collection of Objects".Class will be defined in terms of variables and functions ( or methods or procedures or sub-routines).


Object is an instance of class

An Object in program is required to be created in order to refer and access the real-time object through program.

Object can be created by basing on its definition or description i.e., through class.

Data Abstraction and Encapsulation

The process of showing essential features and hiding unnecessary details is referred as Abstraction

The process of wrapping two or more items as single element is referred as Encapsulation

Note:-Data Abstraction can be achieved only through Encapsulation.


Acquiring the features of already existing class(Base or parent or super class) into a newly creating class(Derived or child or sub class) is referred as Inheritance


The behavior of having more than one form for any element is referred as polymorphism.

POLYMORPHISM(greek term):-poly(means more)-morph(means form)-ism(ability)


Author: Vinod Kumar Sahu10 Feb 2013 Member Level: Silver   Points : 10

Object-Oriented Programming Concepts

If you've never used an object-oriented programming language before, you'll need to learn a few basic concepts before you can begin writing any code. This lesson will introduce you to objects, classes, inheritance, interfaces, and packages. Each discussion focuses on how these concepts relate to the real world, while simultaneously providing an introduction to the syntax of the Java programming language.

What Is an Object?

An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life. This lesson explains how state and behavior are represented within an object, introduces the concept of data encapsulation, and explains the benefits of designing your software in this manner.

What Is a Class?

A class is a blueprint or prototype from which objects are created. This section defines a class that models the state and behavior of a real-world object. It intentionally focuses on the basics, showing how even a simple class can cleanly model state and behavior.

What Is Inheritance?

Inheritance provides a powerful and natural mechanism for organizing and structuring your software. This section explains how classes inherit state and behavior from their superclasses, and explains how to derive one class from another using the simple syntax provided by the Java programming language.

What Is an Interface?

An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface. This section defines a simple interface and explains the necessary changes for any class that implements it.

What Is a Package?

A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage. This section explains why this is useful, and introduces you to the Application Programming Interface (API) provided by the Java platform.

Author: Shine S10 Feb 2013 Member Level: Gold   Points : 0

above response from

Author: Michael Sadgun Rao Kona14 Feb 2013 Member Level: Bronze   Points : 2

In OOP so many concepts are available but all those are entirely based on these 5 basic concepts (which i have mentioned in the article) object,class,Data Abstraction&encapsulation,inheritance and polymorphism.

For example, interface follows polymorphism and package follows encapsulation.

Author: Pawan Awasthi21 Feb 2013 Member Level: Gold   Points : 2

Hai Michael Sadgun Rao Kona,
Thanks for sharing the details about the OOPs concepts. it will be really helpful for all those who are learning these concepts.
But it would have better if you would have shared by some examples which helps in understanding of their use in the real world.

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: