已知类的继承关系如下:classEmployee;classManage...yee;则以下语句能通过编译的有哪些?
举一反三
- 已知类的继承关系如下: classEmployee; classManagerextendsEmployeer; classDirectorextendsEmployee; 则以下语句能通过编译的有哪些?
- 已知类的继承关系如下: classEmployee; classManagerextendsEmployee; classDirectorextendsEmployee; 下语句能通过编译的有哪些? A: Employeee=newManager(); B: Directord=newManager(); C: Directord=newEmployee(); D: Managerm=newDirector();
- 已知类的继承关系如下: classEmployee; classManagerextendsEmployeer; classDirectorextendsEmployee; 下语句能通过编译的有哪些? A: Employeee=newManager(); B: Directord=newManager(); C: Directord=newEmployee(); D: Managerm=newDirector();
- 已知类的继承关系如下:class Employee;class Manage...yee;则以下语句能通过编译的有哪些?
- 已知类的继承关系如下: class Employee; class Manager extends Employee; class Director extends Employee; 则以下语句能通过编译的有哪些?