CPP05 – Write a CPP program to create Student class with appropriate constructor and destructor
Write a CPP program to create Student class with appropriate constructor and destructor. Also show what happen when you try to attempt to access private data members from outside of the class. CODE : #include<iostream.h> #include<string.h> #include<conio.h> class student { int roll; char name[25]; char addr[100]; int std; char div; long cont; public: void get_data(int,char*,char*,int,char,long);… Read More »