0
Why do we need to write CONSTRUCTORS?
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
0
Happy Coding, bro. Thank You