Guess the pattern

Report a typo

Which pattern does the following snippet of pseudocode implement?

interface Car is
  method clone()
  method drive()


class SUV implements Car is
  constructor of SUV is ...
 
  method clone() is ...

  method drive() is ...


...

  Car toyota = new SUV()
  newToyota = toyota.clone()
  newToyota.drive()
Select one option from the list
___

Create a free account to access the full topic