Explain constructor?

Answer Posted / ranjanatyagi

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 ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who benefits from ajax?

587


How to implement a singleton design pattern in c#?

472


What are the generation of Garbage Collection in C# .NET ?

553


What is deadly diamond problem?

540


Is c# and c sharp same?

483






How do generics work in c#?

481


Is c sharp and c# are same?

504


Explain the difference between abstract class and interface.

593


What are the advantages of using c#?

504


What is c# used for?

511


What is interpolation in programming?

486


How to use reflection to call generic method?

492


What are the Configuration files in .net?

511


What is polymorphism in c sharp?

517


Can you inherit multiple classes in c#?

489