Proxy type in pseudocode

Report a typo

Which object in this pseudocode snippet is a service object?

interface Mail is
  method receive(message: String)


class GmailSpamGuard implements Mail is
  ...

  method receive(message)
    ...
    if (message == spam)
      skip(message)
    else
      Gmail mail = new Gmail()
      mail.receive(message)


class Gmail implements Mail is  
  method receive(message: String) is
    ...


class MailWindow is
  ...
  
  Mail gmail = new GmailSpamGuard()
  gmail.receive(message)
Select one option from the list
___

Create a free account to access the full topic