Question: Which of the following statement is correct about the program given below?
#include
class IndiaBix
{
int x;
float y;
public:
void BixFunction(int = 0, float = 0.00f, char = 'A');
void BixFunction(float, int = 10.00, char = 'Z');
void BixFunction(char, char, char);
};
int main()
{
IndiaBix objBix;
objBix.BixFunction(10 * 1.0, int(56.0));
return 0;
}
void IndiaBix::BixFunction(int xx, float yy, char zz)
{
x = xx + int(yy);
cout<< "x = " << x << endl;
}
void IndiaBix::BixFunction(float xx, int yy, char zz)
{
x = zz + zz;
y = xx + yy;
cout<< " x = " << x << endl;
}
void IndiaBix::BixFunction(char xx, char yy, char zz)
{
x = xx + yy + zz;
y = float(xx * 2);
cout<< " x = " << x << endl;
}
[A].The program will print the output x = 65.
[B].The program will print the output x = 66.
[C].The program will print the output x = 130.
[D].The program will print the output x = 180.
Answer: Option D