What consequence have I, if i use two constructor for my class.
best regard
What consequence have I, if i use two constructor for my class.
best regard
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Mohit Jain19 reputationPosted May 29, 2009, 1:15 AM EDT
Hi,
You can have as many constuructor for your class but all of them should have different number of parameters. But only one Default constuructor (Without parameter) you can have in a class. Normal Function overloading rules are applied over here. If you will try to have 2 default constuructor the it will generate error.