0
"Constructors are used to initialize objects." What does "initialize objects" mean?
3 ответов
+ 3
"Inizializing" means bringing your object into a usable state.
If you have an object that writes to a file, then you would create a new file during initialization. Otherwise the object can't do what it is supposed to!
+ 2
You can also read this tutorial for more information:
https://www.baeldung.com/java-initialization
+ 1
@Mirielle(20k XP Monthly till November [2020])
@Schindlabua
@Denise Roßberg
@Martin Taylor
I am really thankful to you because you helped me understand constructors much better and cleared up all my confusion regarding this topic.