what is a constructor?
Answer Posted / shadab alam
It is very Important to know that
---------------------------------------
Constructor is generally used to create the new instance of
a class.
Constructor is special type of method that is used to
initialized the member variable and It has same name as the
class Name.It does not have return type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the default value of decimal in c#?
What is difference between property and variable in c#?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
What are the advantages of generics in c#?
Can a constructor have a return type?
What is the difference between string and stringbuilder in c#?
Contrast between an interface and abstract class?
What is console readkey in vb net?
Do vs while c#?
What is the differences between datagrid, datalist and repeater in .net?
How many types of inheritance are there in c#?
Explain the feature of c# language?
What are the Types of assemblies that can be created in dotnet
Can you create an instance of a static class?
What is alias in c#?