Wednesday, July 7, 2010

what is object in c++

,
In C++ be are Write many because it's object oriented programming language (OOPS). But Many beginner student of C++ confuse what is Object and how to use. In this post we'll discuss about Object of C++ and, What is Object, How to use.

What is Object.

Objects are the basic runtime entities in any system.Objects are behave as a container which contains the properties of a class.


How to use

For Example:-Student is a class and the student1 is the object of class student.

class student
{
char name[50];
void display();
};

student student1; //object created of class student

student1 contain the name and by the use of this object.we can call display function

0 comments to “what is object in c++”

Post a Comment