Class Word { public: Word(const char*, int = 0); }; Referring to the sample code above what is the minimum number of arguments required to call the constructor ?

A) 0
b) 1
c) 2
d) 3
This question is related to BirlaSoft Interview

Showing Answers 1 - 8 of 8 Answers

vaibhav kaushik

  • Jul 28th, 2005

its answer is it will take the default argument system

  Was this answer useful?  Yes


  • Aug 2nd, 2005

minimum argument is 1

  Was this answer useful?  Yes

Priyanka Bhardwaj

  • Aug 9th, 2005

Answer (b)

  Was this answer useful?  Yes

sandeep paliwal

  • Aug 23rd, 2005

answer is 0 because object can be created using default constructor...... and minimum 1 argument is required for calling overloaded constructor

  Was this answer useful?  Yes


  • Jul 15th, 2006

answer should be be it will take 1 minimum 1 argument since we have placed a const char pointer in argument in the constructor since there is no othet constructor it will definitely require 1 argument to be passed to the char ptr

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions