When compiler adds a default constructor to a class?
Answer Posted / 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 |
Post New Answer View All Answers
What is constructors, explain with syntax
Why dataset is used in c#?
What is a factory in c#?
Define a partial class?
How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?
What are the drawbacks of extending an interface as opposed to extending a class?
What is the advantage of generics in c#?
What are partial classes and use of partial classes?
Why do we use overloading in c#?
Can properties be overloaded in c#?
What are the types of access modifiers?
What is monitor in C#?
What is a satellite assembly in c#?
Why constructor is used in c#?
What is multidimensional array in c#?