Abstract factory structure

Report a typo

Which of these code snippets isn't a part of the abstract factory implementation?

1)

interface is
  method createDevice(): Device
  method createModDevice(): ModDevice

2)

method getInstance() is
  if (instance == null) then
    instance = new Object()
  return instance

3)

interface Device is
  method create()

class Laptop implements Device is...

class Phone implements Device is...
Select one option from the list
___

Create a free account to access the full topic