KyaPoocha.com

Huge Collection of Interview Questions


What is Constructor ? How it is called ? 

Constructor is a member function of the class, with the name of the function being the same as the class name. It also specifies how the object should be initialized.Ways of calling constructor:

1) Implicitly: automatically by complier when an object is created.

2) Calling the constructors explicitly is possible, but it makes the code unverifiable.



If you liked this question/asnwer, make sure you
Subscribe to KyaPoocha.com RSS feed!


BOOKMARK THIS : BlinkList | del.icio.us | Digg it | Furl | reddit | StumbleUpon | Yahoo MyWeb |