Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

WithoutBook Forum

Ques. why we use the constructor?

- why we use the constructor ???? plz send a msg .....

Posted on Sep 22, 2010 by rajib biswas
Ans. The constructor serves the purpose of initializing whatever is needed on the base abstract class, whenever a descendant class is created. Note that if the abstract class offers only a single version of the constructor – say, receiving a parameter, or not receiving a parameter – it HAS to be called by the descendant class. In the case of a 'parameterless' constructor, this happens automatically whenever the derived class is constructed.
Posted on Sep 22, 2010 by Arindam Ghosh

Ans. Hi
Good site
Thanks you
Posted on Aug 01, 2014 by Cialis

Enter your Answer

Name
Email Address
Answer
©2024 WithoutBook