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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What is a property in c#?
How can you prevent classes to be inherited?
Can we change static value in c#?
What namespaces are necessary to create a localized application?
Explain the working of serialization?
Wats the diff between sealed class and private class in inheritance
Explain how do I convert a string to an int in c#?
Can you access a hidden base class method in the derived class?
In Main function another function is there and to that function if we pass string as parameter ,then that string value is passed by value or reference type?
What is the difference between an implicit conversion and an explicit conversion?
Explain About .Net remoting
If dll and exe files are same it means you can deploy both the files in gac?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)