Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Write a C++ Program for concept of object.
SUBMITTED BY:
Nrupeshsinh
DATE:
July 4, 2016, 1:53 p.m.
FORMAT:
Text only
SIZE:
297 Bytes
Raw
Download
Tweet
HITS:
332
Go to comments
Report
# include<iostream.h>
# include<conio.h>
class Myclass // this is class.
{
public:
void show()
{
cout<<"C++ is Better than c language.";
}
};
void main()
{
clrscr();
Myclass obj; //object is created here.
obj.show(); //object declaration.
getch();
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus