Explain constructor?

Answer Posted / surabathina

constructor is a method it gets invoked when instance of
the class is created

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do void methods have parameters?

681


What do you use c# for?

689


What is the best dependency injection c#?

657


What is appdomain in c#?

670


Why do we use delegates in c#?

675


What is the diff between the System.Array.CopyTo() and System.Array.Clone()?

766


What is strong name in c# and how can we use it?

724


What is difference between ienumerable and list?

726


What is strongly typed in c#?

663


What are the methods in c#?

699


What are the different types of assemblies available and their purpose?

678


Can we overload the main method in c#?

676


What are extension methods and where can we use them?

649


How do I simulate optional parameters to com calls?

723


What are access modifiers used for?

804