+ 1
is it must to create a constructor in a class?can there be a program without constructor in a class?
2 ответов
+ 11
In most programming languages, a default constructor is prepared, if you do not explicitly define a constructor for the class.
+ 5
I think understanding constructors is very important if you want to understand why Object Oriented Programming is so powerful. Constructors are in my opinion worth spending time with until you understand them.