Pseudocode result

Report a typo

Take a look at this piece of pseudocode:

global instance

class Object is
  constructor of Object...

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

...

method main() is
  main = Object.getInstance()
  secondary = Object.getInstance()
    if (main == secondary)
      return true
    else
      return false

What will our main() method return?

Select one option from the list
___

Create a free account to access the full topic