Objects and Classes - Programming

Q1:

Which of the following statement is correct about the program given below?
#include<iostream.h> 
class AptitudeBase
{
    int x, y; 
    public:
    AptitudeBase(int xx = 10, int yy = 10)
    {
        x = xx;
        y = yy;
    }
    void Show()
    {
        cout<< x * y << endl;
    }
};
class AptitudeDerived : public AptitudeBase
{
    private:
        AptitudeBase objBase; 
    public:
    AptitudeDerived(int xx, int yy) : AptitudeBase(xx, yy), objBase(yy, yy)
    {
        objBase.Show();
    }
};
int main()
{
    AptitudeDerived 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.

ANS:A - The program will print the output 100.

No answer description is available. Let's discuss.