Cpp Programming 69 – Which of the following is correct about function overloading?
[B]. The order of argument is different.[C]. The number of argument is same.
[D]. Both A and B.
Answer: Option D
Answer: Option D
Answer: Option D
The program will print the output 108.
[C].
The program will print the output garbage value.
[D].
The program will report compile time error.
Answer: Option A
Explanation:
No answer description available for this question.
Answer: Option D
#include
class BixBase
{
int x, y;
public:
BixBase(int xx = 10, int yy = 10)
{
x = xx;
y = yy;
}
void Show()
{
cout<< x * y << endl;
}
};
class BixDerived : public BixBase
{
private:
BixBase objBase;
public:
BixDerived(int xx, int yy) : BixBase(xx, yy)
{
objBase.Show();
}
};
int main()
{
BixDerived objDev(10, 20);
return 0;
}
[A].The program will print the output 100.
[B].The program will print the output 200.
[C].The program will print the output Garbage-value.
[D].The program will report compile time error.
Answer: Option A
A destructor has integer return type.
[C].
A destructor has no return type.
[D].
A destructors return type is always same as that of main().
Answer: Option C
Explanation:
No answer description available for this question.