0

"Constructors are used to initialize objects." What does "initialize objects" mean?

2nd Apr 2020, 11:19 AM
H-J
H-J - avatar
5 Respostas
+ 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!
2nd Apr 2020, 12:03 PM
Schindlabua
Schindlabua - avatar
+ 2
You can also read this tutorial for more information: https://www.baeldung.com/java-initialization
2nd Apr 2020, 12:04 PM
Denise Roßberg
Denise Roßberg - avatar
+ 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.
2nd Apr 2020, 12:36 PM
H-J
H-J - avatar