Explain constructor?

Answer Posted / salman

A constructor has the same name as class name.Constructor
has no return type.Constructor are used to initialize the
object.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a reference type c#?

507


What is the difference between an implicit conversion and an explicit conversion?

484


What is single dimensional array in c#?

486


In a single .NET DLL how many classes it contains?

505


Explain the types of assemblies in .net?

521






Explain the difference between a Private Assembly and a Shared Assembly

505


What is namespace explain with example?

449


How will you deploy the dll file in gac?

472


Is c# 8 released?

468


What are the types of parameters in c#?

510


What is an escape sequence?

505


What is nameof c#?

475


What language do desktop applications use?

468


What are generic types?

485


What .exe means?

496