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
What is singleordefault?
What is an escape sequence in c#?
From which base class do all Web Forms inherit from?
Can you access a hidden base class method in the derived class?
Can an array be null c#?
What does the keyword “virtual†declare for a method or property?
What is ienumerator c#?
What is the predicate of a sentence?
What is reference types in c#?
Why do we need interface in c#?
Describe two uses of the “using” statement during the operation of c#?
What is a statement c#?
What is difference between tostring() vs convert.tostring() vs (string) cast
what is inheritance and an example in vb.net and c# of when you might use it?
Does c# support c type macros?