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 are the Disadvantages of vb

595


Explain About Web.config

559


How many bytes is a long c#?

459


Can abstract class have constructor in c#?

489


Who is a accessibility modifier “protected internal” available to ?

591






What is a delegate in c#?

506


Which types of inheritances does c# support?

459


What happens if a static constructor throws an exception?

490


What is difference between function and method in c#?

457


Why we use delegates in c#?

498


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1497


What is a linked list c#?

499


What is a Managed Code??

536


What is an inheritance ?Give an example in which inheritance is used?

523


Can you explicitly call a destructor?

528