Injection example

Report a typo

Which type of injection is shown in this chunk of pseudocode?

interface Car is
  method drive()

class Ferrari implements Car is
  method drive() is ...

class Dependent is
  Car car

  method chooseCar(Car car)
    car.drive()
Select one option from the list
___

Create a free account to access the full topic