Constructors - 2017

From TRCCompSci - AQA Computer Science
Revision as of 05:18, 26 May 2017 by Admin (talk | contribs)
Jump to: navigation, search
  • A constructor method has the same name as the class.
  • It is used when an instance of the class is created, the constructor method will always be run.
  • A class can have many constructor methods.