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

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!