Tuesday, 26 May 2015

Basic Concept Of Object-Oriented Programming In C++

By

Object-oriented programming(oop) is simply a manner of thinking about the problem space of the system to be develped.
These Includes :

Object 


Object is the basic runtime entities in object oriented programming.They are also represent real world entity such as a perseon, a place, a bank acount, a table of data and any of the item that handle by program.
Object containing information about data and code to manipulate the data.Object can intract without having to know the details of each others code of block that exist in the class.

Class 


Class is a blueprint of related data members and methods.In other words, class is the self contained independent collection of the data member and methods, which create because perform specific task.
Once class has been defined, we can create any number of object of that class. A class is the collection of similar types of objects. Each object in class are associated with class.For example, fruite is define as a class and members of fruite class are mango, apple, and orange.

Data Abstraction And Encapsulation 


The wrapping up of data and functions into a  single unit is known as encapsulation. In the data encaptulation in data is not accessible to outside world and only those functions which are wrapped the class can access it.
This insulation of data from direct access by the program is called data abstraction or data hiding.
Abstarction is process of representing essential features without including the background details. 

Inheritance 


Inheritance is the process of which objects of one class acquires the properties of objects of another class.
Inheritance supports the concept of  hierachical classification.
Inheritance in we can add addition features to an existing class without modified it.

Polymorphism 


Polymorphism is the greek language word it means ability to take more than one form. In Polymorphism operations may exhibit different behavior is different instances. The behavior depends upon the types of data used in the operations.

0 comments:

Post a Comment