已知类的继承关系如下: class Employee; class Manager extends Employee; class Director extends Employee; 则以下语句能通过编译的有哪些?
举一反三
- 已知类的继承关系 class Employee; class Manager extends Employee; class Director extands Employee; class Director extands Employee; 下语句能通过编译的有哪些?
- 已知:class Employee;class Manager extends Employee;class Director extends Employee;则以下语句能通过编译的有哪些? A: Employee e = new Manager(); B: Director d = new Manager(); C: Director d = new Employee(); D: Manager m = new Director()
- class Employee; class Manager extends Employee; class Director extends Employee;
- 已知类的继承关系如下:class Employee;class Manage...yee;则以下语句能通过编译的有哪些?
- 已知类的继承关系如下: class A class B extends A class C extends A 则以下语句能通过编译的是( )。