Is the following program legal? The relevant classes are defined in Displays 7.2and 7.3.public class EmployeeDemo{public static void main(String[] args){HourlyEmployee joe =new HourlyEmployee("Joe Young",new Date("Feb", 1, 2015), 10.50, 40);String nameNDate = joe.super.toString();System.out.println(nameNDate);}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here