Write a program to create data members in user define class


 

/* Write a program to create  data members in user define class*/

#include<iostream.h>

#include<conio.h>

class abc

{

private:

int a,b;

clrscr();

public:

void display()

{

cout<<“dis”;

}};

output:

dis

Related Posts

Comments are closed.