O'Reilly logo
  • Pablo Defendini thinks this is interesting:

If you wanted HelloWorld to be a subclass of a logging class you had created, such as LogFile, you would change the declaration as follows:

class HelloWorld: LogFile


Cover of Swift for Absolute Beginners


Wait, so you don't nest classes to determine inheritance?