+ 3

Whats purpose does a constructor have in app development?

I havent started to build anything yet but im just curious as to why i would use a constructor other then creating an instance of class.

24th Sep 2017, 8:59 PM
D_Stark
D_Stark - avatar
1 Resposta
+ 3
A constructor initializes your program, or more specifically instances of the class that are created upon running the program, or during runtime. So the default 'settings' are set by the constructor.
24th Sep 2017, 9:35 PM
Tumelo Koko
Tumelo Koko - avatar