Which option is false for the following code?
A. Constructor can be created with zero argument
B. Constructor prints sum, if two parameters are passed with object creation
C. Constructor will give error if float values are passed
D. Constructor will take 0 as default value of parameters if not passed
Code:
class A
{
private : int sum(int x, int y)
{
return x+y;
}
public: A()
{
}
A(int x, int y)
{
cout<<sum(x,y);
}
};
B. Constructor prints sum, if two parameters are passed with object creation
C. Constructor will give error if float values are passed
D. Constructor will take 0 as default value of parameters if not passed