Basic Concept of Object Oriented Programming Language - oops concept

 Basic Concept Of Object-Oriented Programming Language- oops concept

Basic Concept  of Object Oriented Programming Language - oops concept
Basic Concept  of Object Oriented Programming Language - oops concept

  • Object-oriented programming as the name says gives more significance to the objects which have data and functions built around it.
  • The data of the object can be accessed by the functions associated with it. The functions of one object can access the data of another object through the functions of that object.
  •  Object-oriented programming uses a bottom-up approach wherein the smaller tasks are first dealt in detail and gradually creating the entire huge system.
Basic Concept  of Object Oriented Programming Language - oops concept
Basic Concept  of Object Oriented Programming Language - oops concept

  • Fig. A shows the structure of an object-oriented programming language. 
  • C++, Python, Ruby, C#, and Java are examples of object-oriented programming languages.
  • There are a few important terms related to Object-Oriented Programming that we need to understand. First the concepts objects and classes and then the specialties of OOPs viz. Do Abstraction, Encapsulation, Inheritance, Polymorphism, etc      Let us understand them one by one.

1.Class:

It is a type or a category of things. It is similar to a with the difference that it can also have functions besides data items. A structure, we have seen, can have only the data variable but a class can have data members as well as function members.

2.Object:

It is an instance or example of a class. You can imagine it be similar to a variable of class like we have a variable of
structure.

3.Data abstraction:

Data abstraction is like defining or abstracting the obiet according to the required parameters. For example, if there is a class for circle we need to just define the radius of the object of this class. We need not bother about anything else of that object.

4.Data encapsulation:

The data of an object is hidden from other objects. This is called as encapsulation. Encapsulation is achieved by putting data and functions associated with it into a class.

5.Inheritance:

The mechanism of deriving the properties of one class into another class is known as inheritance.







Post a Comment

Post a Comment (0)

Previous Post Next Post