You are on page 1of 2

Solution Q: 1

Question No : 2

Code
Code
Statements
Statements with
without proper
proper coding
coding
conventions
conventions

string
vehicleplatenumb
er; string
vehiclePlateNumb
// plate number of er;
vehicle

void
setage(Admin a); void
setAge(Admin
// setter function
admin);
for admin age

   
student std;

// variable of type Student std;


Student

int
openDVDplayer()
; int
openDvdPlayer();
// function to
open DVD player

class Studentinfo{

private int
rollNo;    // roll
number of student class StudentInfo{

private int rollNo;



};

};

You might also like