What is a constructor in c#?

Answer Posted / hr@tgksolutions.com

• A constructor is a special member function used to initialize objects. It has the same name as the class and no return type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static class in C#?

790


What is the difference between a function and a method?

724


What is the default boolean value in c#?

706


How do I know if executenonquery is successful c#?

648


What is disco?

722


How we can create an array with non-default values?

748


What is the difference between class and namespace?

713


Distinguish between continue and break statement?

768


What are strong name assemblies?

776


Which of these string definitions will prevent escaping on backslashes in c#?

792


What are the desktop applications?

673


Why delegates are safe in c#?

655


What is string in c# net?

706


What issues can be faced while delivering code?

1716


What is an icollection in c#?

683