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 / guest
Two. Once you write at least one constructor, C# cancels
the freebie constructor, and now you have to write one
yourself, even if there?s no implementation in it
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
If you want to convert a base type to a derived type, what type of conversion do you use?
What is difference between abstract class and interface in c#?
Is static class thread safe in c#?
Why do we use dataset in c#?
Why we use extension method in c#?
What is asp net in c#?
What is difference between an Structure and Class?
What is namespace in oops?
What are object pooling and connection pooling and difference between them?
how to stored and retrive video in Sql server using asp.net c#......?
Why use “using” in c#?
What is a helper method in c#?
What do you mean by for each loop?
Does c# support templates?
How to implement a singleton design pattern in c#?