+ 1
can constructors be called??
3 Answers
+ 2
You call a constructor when instanciating an object.
MyClass myObj = new MyClass();
+ 1
yeah, constructor can be called when an object is created
+ 1
constructor cannot be called explicitly
they are automatically called when the object is created