Search This Blog

Sunday, 23 December 2012

Object using c++


#include<iostream.h>
#include<conio.h>
class person
{
public:
void show()
{
cout<<"this is class function"<<endl;
}
};
void main()
{
person p;
p.show();
}
getch();
}


Output:
this is class function




No comments:

Post a Comment