Exercise Questions 1.25
18. Members that can be inherited in Java are
(i) Public (ii) Private (iii) Private protected (iv) Protected
(v) Default
(a) i and ii (b) i and iii (c) i, iii, iv and v (d) ii, iv and iv
19. Java supports the following types of inheritance relationships:
(i) Multiple (ii) Multilevel (iii) Single level (iv) Virtual
(a) i and iv (b) i, ii and iii (c) ii and iii (d) iii and iv
20. Overriding of methods means
(a) Same name and same return type as that of super by subclass
(b) Defining more than one method with the same name but different arguments by subclass
(c) Defining more than one method with the same name but different arguments by super class
(d) Defining more than one method with the same name and arguments ...