Object-Oriented-Programming-Concept-in-C++ .

In this session i have discussed object oriented programming in C++ .


Object Oriented Programming :

The short name of object oriented programming is oops . It is a paradigm . It is provide the many concept like abstraction , inheritance , polymorphism etc .

The first object oriented programming language is smaltalk .

there are some object oriented programming like C++ , Java , C# etc .

The object oriented programming has following concept .

1-Object .

2-Class .

3-Abstraction .

4-Encapsulation .

5-Inheritance .

6-Polymorphism .


Object :

Object is a real world entity . That contains two things properties and behaviours . i.e A pen is a real world object that contains the properties like color ,height , width etc and functionality is to write on paper . In object oriented case properties means data members and functionlity means methods .


Class :

Class is a keyword .

Class is a type .

Class is a collection of data members and member functions .

Class is a blue print .


Abstraction :

It is refer the essential features without including background details . i.e freez(Refrigerator) in which you keep the water that will cool but what process it will be executed we do not known .


Encapsulation :

Wrapping up of the data members and member functions into a single unit (class) this process is called the encapsulation . You want to achieve the encapsulation then make the member as private . It is accessible inside the class not out side the class .


Inheritance : :

A class acquires the properties and behaviours from another class this process is called the inheritance . i.e a child can access all the characterstics from their parents . The main purpose of using inheritance is reusabiliy .


Polymorphism : :

Polymorphism is a Greek word means having multiple form . In polymorphism name same and behaviour different . i.e A person is husband of a woman when he is in the company then he is employee of company . person one but functionalities different .


Welcome to AndroidATPoint.

back image                     next image