7. C# provides a default constructor for me. I write a
constructor that takes a string as a parameter, but want to
keep the no parameter one. How many constructors should I
write?
Answer Posted / nilesh chaudhari
Compiler will provide the default constructor when you not
writing any constructor then only. Otherwise if you writes
any parameterized constructor then you have to explicitly
mentioned default constructor because this condition
Compiler will not provide the default constructor.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do namespaces work?
What are the ways in which client can create object on server in cao model?
What is the xml document structure?
What is difference between ilist and list in c#?
What is the use of ispostback in c#?
How can I make sure my c# classes will interoperate with other .net languages?
What are the types of serialization?
What's the difference between an integer and int?
What does the parsefloat function do?
Explain About friend and Protected friend
What is callback function in c#?
How to block a class from being inherited further?
What are the advantages of clr procedure over t-sql procedure?
What is list array in c#?
What is the example of predicate?