Limited access

Upgrade to access all content for this subject

Which of the following would be good reasons for class A to extend class B?

I. When class A needs to use methods already created in class B.
II. When class A is very similar to class B but also needs to keep track of additional data.
III. When class A is very similar to class B but some of the methods need to be redefined in class A.

A

I only.

B

II only.

C

I and III only.

D

II and III only.

E

I, II, and III.

Select an assignment template