When compiler adds a default constructor to a class?
Answers were Sorted based on User's Feedback
Answer / chandana
The compiler adds a default constructor to a class when no
constructor are specified by the programmer.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / sitaram
when ever compile the class,First compiler check the any
type of constructor is available or not in that class? if
it is not available. compiler will automatically create the
default constructor.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / abhay k pandey
When there in no explicite parameterless constructor
written for any class. C# compiler calls the default
constructor and initializes fields with zero, false and
null values.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / romeo
when the object of that class is created with no parameters
passed.
| Is This Answer Correct ? | 2 Yes | 7 No |
What is the purpose of a namespace?
What is difference between string and string builder?
Why do we use namespace in c#?
How do you create dlls in .NET
What is a nullreferenceexception and how do I fix it?
How can we convert XML Data to DataBase Table in C#.Net?
Can you use foreach iteration on arrays in c#?
Why do we need indexer in c#?
What is the meaning of 0 in c#?
What is public void in c#?
Why do we use public static void main in c#?
Suppose in a scenario if we want to display information only until 4.00 p.m and after that means after 4.00 p.m if any one tries to access the information it should give error mesage. Then how will you write a delegate for this ? Give coding.
1 Answers HP, nTech Solutions, Primetech Software, PS,
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)