what is a constructor?
Answer Posted / ranjith
Constructor is a method which will be executed when an
object is created. It is used to Intialize the
object.constructors has the same name as the class
name.constructors will take parameters.constructors doesnot
return any value
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is private and shared assembly?
Write the syntax for catching an exception in c#?
What is for loop in c#?
How do I use the 'using' keyword with multiple objects?
Is linkedhashset synchronized?
What are the 3 logical operators?
What is a console application in c#?
What is the size of a decimal?
What is option parameter in C#?
How would you describe encapsulation in c#?
What is the difference between add and addrange in c#?
What is the difference between as and is operators in c#?
How many types of interface are there in c#?
Why do we use ienumerable in c#?
How do switch statements work?