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 / venu gopal
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 ? | 6 Yes | 1 No |
Post New Answer View All Answers
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
What are the access modifiers in c#?
What is a delegate? How can it works?
What is a event in c#?
What are the three types of operators?
What is string concatenation?
Is datetime immutable c#?
What is the use of list in c#?
What is the benefit of using interface in c#?
Who introduced c#?
What is singleordefault?
What is array class in c#?
Is string value type c#?
Is a valid int value?
Define multicast delegate in c#?