class Student extends Human{
int RollNo;
String ClassName;
public void setRollNo(int r){
RollNo=r;
}//end of set
public int getRollNo(){
return RollNo;
}// end of get
public void setClassName(String s){
ClassName=s;
}//end of set
public String getClassName(){
return ClassName;
}// end of get
}//end of main
No comments:
Post a Comment