go to previous page   go to home page   go to next page

Answer:

Add more employees.


More Objects Created at Run Time

boss and additional workers

Object-oriented programs can create more objects as the program runs. The new objects might be needed to handle additional data that the program needs to work with. The picture shows your business after a few more employees have been added.

Notice that objects (workers) can communicate with each other, not just with main() (the boss). Some objects do not communicate with main() at all, but communicate only with other objects in the system.


QUESTION 5:

(Review:) Can a class description be used to create more than one object?