Who depends on who?

Report a typo

You are working on a game. The game's development has been in progress for some time and you are studying its code. While scrolling down, you stumble across two classes: Car and Engine. The relation between these classes can be depicted in this pseudocode:

class Engine is
  method start()

class Car is
  Engine engine = new Engine()
  
  method start() is
    engine.start()

Which class is dependent on the other class?

Select one option from the list
___

Create a free account to access the full topic