Object Oriented Programming

Object-oriented programming is a programming paradigm based on the concept of “objects”, which can contain data, in the form of fields, and code, in the form of procedures. A feature of objects is an object’s procedures that can access and often modify the data fields of the object with which they are associated.

OOP features include the following:

The 4 basic features of object oriented programming as follows:

  • Encapsulation: This makes the program structure easier to manage because each object’s implementation and state are hidden behind well-defined boundaries.
  • Polymorphism: This means abstract entities are implemented in multiple ways.
  • Inheritance: This refers to the hierarchical arrangement of implementation fragments.
  • Abstraction: This refers to hide details and show only essential features of object.


Object-oriented programming allows for simplified programming. Its benefits include reusability, refactoring, extensibility, maintenance and efficiency.

Object

Objects are basic run-time entities in an object oriented system, objects are instances of a class these are defined user defined data types.

Example

Class

Class is a blueprint of data and functions or methods. Class does not take any space.

Syntax

You people need to understand basic functions of object oriented programming, I recommended you to watch closely following video, it is two parts. First parts talks about basics of OOP and difference between procedural programming language. Click here to reach out the full video.

On the second part it is about OOPs features in deep explanation and this is most important part of basic programming concept to understand what is going on behind the screen of programming languages. Click here to watch the full video.

References:

If you are hungry to know more about OOP; go through following links:

Latest Articles

Follow us:

Leave a Reply

Your email address will not be published. Required fields are marked *