✏️ Explanatory Question

Can constructor perform other tasks instead of initialization?

👁 1,082 Views
📘 Detailed Answer
1,082
Total Views
10
Related Qs
0%
Progress
💡

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.