Write a program to create user define class


 

/* Write a program to create user define class*/

#include<iostream.h>

#include<conio.h>

class abc

{

public:

void display()

{

cout<<“display”;

}};

void main()

{

abc a1;

clrscr();

a1.display();

getch();

}

output:

display

Related Posts

Comments are closed.