Given the following code, which statements are true?
interface Printable { String describe (); } class Shape implements Printable{ String name;//from w w w . j a v a 2s . com public String describe (){ return " 4 Wheeler " + name; } } class Rectangle extends Shape{ String name; public String describe (){ return " 2 Wheeler " + name; } }
Select 3 options
Correct Options are : A B C
The use of inheritance in this code is not justifiable, since conceptually, a Rectangle is-not-a Shape.