C
Constant
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 studentublic person{ //Seudent inherits form Class person
private:
int studentNo;
public:
/*Student contructor*/
student(char *sn, char *gn, char *addr, char *bDay, int sNo)
erson(sn,gn,addr,bDay){
studentNo=sNo;
}
void showStudentNo(){
cout<<"Sudent No: "<<studentNo<<endl;
}
};
but the action(result) should be the same.
Can someone reformulate this source code for me?
I would greatly appreciate
Thanks a lot !
class studentublic person{ //Seudent inherits form Class person
private:
int studentNo;
public:
/*Student contructor*/
student(char *sn, char *gn, char *addr, char *bDay, int sNo)
erson(sn,gn,addr,bDay){
studentNo=sNo;
}
void showStudentNo(){
cout<<"Sudent No: "<<studentNo<<endl;
}
};