Difference between revisions of "Constructors - 2017"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "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 cons...")
(No difference)

Revision as of 05:10, 26 May 2017

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.