✏️ Explanatory Question

Can constructor perform other tasks instead of initialization?

👁 1,090 Views
📘 Detailed Answer
💡

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.