| |
GeekInterview.com > Placement Papers > Birlasoft > Technical
| Print | |
Question: 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 ?
Answer: a) 0 b) 1 c) 2 d) 3
|
| August 08, 2005 10:53:51 |
#4 |
| sandeep paliwal |
Member Since: Visitor Total Comments: N/A |
RE: class Word { public: Word(const char*, int = 0); }; Referring to the sampl |
| answer is 0 because object can be created using default constructor...... and minimum 1 argument is required for calling overloaded constructor |
| |
Back To Question | |