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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mohit JainPosted May 29, 2009, 5:15 AM
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.