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
Do loops c#?
what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }
How does dictionary work in c#?
What is strong name in c# and how can we use it?
What do you mean by hashtable c#?
What are immutable types in c#?
What does a constructor do c#?
What is console readkey ()?
What are functions in c#?
What type of data type conversion happens when the compiler encounters the following code?
How many constructors can a class have in c#?
Can you have more than one namespace in c#?
What is cshtml?
How do you remove white spaces from a string?
What is a framework in c#?