Base class has constructor with arguments, then it mandatory for derived class to have constructor

Q.  If base class has constructor with arguments, then it is ________________ for the derived class to have constructor and pass the arguments to base class constructor.
- Published on 17 Jul 15

a. Optional
b. Mandatory
c. Compiler dependent
d. Error

ANSWER: Mandatory
 

    Discussion

  • Raj   -Posted on 08 Oct 15
    If base class has constructor with arguments, then it is mandatory for the derived class to have constructor and pass the arguments to base class constructor.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)