Home / Questions / Can constructor perform other tasks instead of initialization?
Explanatory Question

Can constructor perform other tasks instead of initialization?

👁 1,082 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Yes, like object creation, starting a thread, calling a method, etc. You can perform any operation in the constructor as you perform in the method.