For each of these possibilities describe a specific made-up


For two classes ClassA and ClassB. We could either
1. have ClassB inherit from ClassA
2. give ClassB an instance variable whose type is ClassA

For each of these possibilities, describe a specific made-up situation (what is the program, what are the classes) where it would be the right choice, and explain why. (Your answer cannot be the same as any assignment or example in this class)

Solution Preview :

Prepared by a verified Expert
JAVA Programming: For each of these possibilities describe a specific made-up
Reference No:- TGS02374262

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)