Interpret the following c++ program
Class students
}
Long int rollno:
Private:
Int age;
Char sex;
Float height ;
Public:
Student();
Void getdata();
Void disinfo(void);
Int process( int age,int sex);
};
It is a definition of a student class with private members rollno, age, sex and height. There is a default constructor and functions getdata, disinfo and process to be implemented. This is most likely a header file. The program does nothing at the moment.
Comments
Leave a comment