I have this sub class that I need to reformulate ..change the source
but the action(result) should be the same.
Can someone reformulate this source code for me?
I would greatly appreciate
Thanks a lot !
class student:public person{ //Seudent inherits form Class person
private:
int studentNo;
public:
/*Student contructor*/
student(char *sn, char *gn, char *addr, char *bDay, int sNo)
:person(sn,gn,addr,bDay){
studentNo=sNo;
}
void showStudentNo(){
cout<<"Sudent No: "<<studentNo<<endl;
}
};