Explain constructor.

Answer Posted / hafiza khan

Constructor is like a method with a same name as of ur
class name ,no return type..
It is used to initialize the memebr variables of the class..
If there is no contructor provided compiler invokes the
default constructor. the Moment there is contructor is
provided to the class it can be any either default or
parameterized the compiler stops invoking it own default
constructor

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain something about WebService?

671


What are .net functions?

525


What is SOAP? How you will do windows and forms authentication?

581


Compare client server application with n-tier application

505


How big is the datatype int in .net?

568






What is the benefit of .net core?

491


Explain what are possible implementations of distributed applications in .net?

534


What are three common acronyms used in .net, and what do they stand for?

524


How can you turn-on and turn-off cas?

547


Explain what inheritance is, and why it's important?

505


What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?

704


Explain the difference between garbage collections in .net 4.0 and earlier versions?

535


What are the important components of .net?

558


What is smart navigation in .net?

561


Explain the different types of proxy patterns?

682