Instantiation

From Suhrid.net Wiki
Revision as of 05:41, 16 August 2011 by Suhridk (talk | contribs) (Created page with "== Constructors == * Every class - including Abstract classes - MUST have a constructor. * Constructor chaining is built in. Every class constructor will call its default super...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Constructors

  • Every class - including Abstract classes - MUST have a constructor.
  • Constructor chaining is built in. Every class constructor will call its default superclass constructor using super().
  • Every constructor as its first statement has a call to this() or super().
  • Compiler will only automatically insert call to no-arg super() or this().