Which constructor is invalid for class cat?A) void cat :: cat() { feet=4;} B) cat::cat(int f){feet=f;}C) cat::cat(void){feet=8;} D) cat::cat(int f){this->feet=f;}

This question is related to Wipro Interview

Showing Answers 1 - 20 of 20 Answers

sam

  • Sep 22nd, 2006
 

answer may b "d"

 pls confirm and let em knw also

  Was this answer useful?  Yes

krishna chaitanya

  • Sep 29th, 2006
 

ans: aconstructor should not have a return type

keshav kumar

  • Nov 6th, 2014
 

C) cat::cat(void){feet=8;}

  Was this answer useful?  Yes

sabina parveen

  • Nov 19th, 2014
 

constructor doesnot have return value Answer is void cat::cat(){feet=4;}

  Was this answer useful?  Yes

indrapriya

  • Dec 27th, 2014
 

A). void cat::cat() {feet=4; }

  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