0

Why do we need to write CONSTRUCTORS?

5th Jan 2017, 8:48 AM
Nochains
Nochains - avatar
2 Antworten
+ 1
def - constructor is a special function named same as class without return type ( example : class Dog - its constructor can be Dog()). its purpose is to instantiate object. i would like to recomand you Heads first book abot Java - i'm assure you its the best that you can read about topics like this. happy coding
7th Jan 2017, 12:13 AM
Stefan Milosavljevic
Stefan Milosavljevic - avatar
0
Happy Coding, bro. Thank You
7th Jan 2017, 8:32 AM
Nochains
Nochains - avatar