Declaration for a student class.

Last Questions 11.

Q12. Write declaration for a class that holds the information of Q11. For associated operations, make suitable assumptions.

Ans.

class stud

{

int roll_no;

char name[20];

int class;

float marks;

char grade;

 

public:

percent();  //to calculate the percentage of student

calgrade();  //calculate grade

prntreport();  //prints the report of the student

};

Leave a Reply

Your email address will not be published. Required fields are marked *

68 Views
%d bloggers like this: