0
Constructor = ethod
What is the difference between constructor and method? Auf Deutsch wird die Antwort viel besser :D
5 Antworten
+ 7
Constructor is spacial method that will be invoked at the time of object creation.
+ 2
Constructor is a special method that only serves to initially set up a new instance.
Methods are everything else, everything the instance 'does'.
+ 1
Constructor can't return a value.
+ 1
Thank youu :)