试题详情
- 多项选择题Which three demonstrate an “is a” relationship?()
A、 public class X { } public class Y extends X { }
B、 public interface Shape { } public interface Rectangle extends Shape{ }
C、 public interface Color { } public class Shape { private Color color; }
D、 public interface Species { } public class Animal { private Species species; }
E、 public class Person { } public class Employee { public Employee(Person person) { }
F、 interface Component { } class Container implements Component { private Component[] children; }
- A,B,F
关注下方微信公众号,在线模考后查看
热门试题