Write a program to use constructor


/* Write a program to use constructor*/

#include
#include
class abc
{
public:
abc()
{
cout<<"c++";
}};
void main()
{
abc a;
getch();
}
output:
c++

Related Posts

Comments are closed.