Which among the following can be used in place of default constructor?
A. constructorName(int x,int y=0)
B. constructorName(int x=0,int y=0)
C. constructorName(int x=0,int y)
D. constructorName(int x,int y)
Answer:C
Which among the following can be used in place of default constructor?
A. constructorName(int x,int y=0) B. constructorName(int x=0,int y=0) C. constructorName(int x=0,int y) D. constructorName(int x,int y)