Question: #include using namespace std ; class Student{ int studentId; string studentName; int courseNo; bool enrolmentstatus; public : Student( string x, int y, int a, bool

#include  using namespace std; class Student{ int studentId; string studentName; int courseNo; bool enrolmentstatus; public: Student(string x,int y,int a,bool s){ studentId=y; enrolmentstatus=s; studentName=x; courseNo=a; } void display(){ cout<<"Student name:"<endl; cout<<"Stydent id:"<endl; cout<<"course No:"<endl; cout<<"Enrolment status:"<endl; } }; class driver{ public: Student *x; driver(string n,int y,int a,bool s){ x=new Student(n,y,a,s); } void call(){ x->display(); } }; int main() { driver t("sandeep",100,190,true); t.call(); return 0; } 

Please convert this to OOP style, with a separate file for the header.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!