Question: (Extra credit: 10 points) Imagine you're working on a computer game and need to develop classes for some objects, such as vehicles, buildings and bridges.
(Extra credit: 10 points) Imagine you're working on a computer game and need to develop classes for some objects, such as vehicles, buildings and bridges. Objects are quite different: however, they all can be destroyed. Would you create a common parent class or an interface to describe the destructible objects, given that destruction method varies greatly between the abovementioned classes? Explain your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
