+ 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.
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.