class Clerk extends Employee { String Grade; public Clerk(int e_no,String e_name,double e_sal,String e_Grade) { super(e_no,e_name,e_sal);//inherits from the parent class Employee Grade=e_Grade; this.set_Grade(e_Grade); }
Can anyone please tell me whats wrong with this code?I have note written the parent class here.But I have it in my program. An error is displayed when I compile this saying "Not a statement return this.Grade;
View All Comments
| View Tutorial