Functions - Programming

Q1:

What will be the output of the following program?
#include<iostream.h>
#include<string.h> 
class AptitudeString
{
    char x[50]; 
    char y[50]; 
    char z[50]; 
    public:
    AptitudeString()
    { }
    AptitudeString(char* xx)
    {
        strcpy(x, xx); 
        strcpy(y, xx);
    }
    AptitudeString(char *xx, char *yy = ' C++', char *zz = ' Programming!')
    {
        strcpy(z, xx); 
        strcat(z, yy); 
        strcat(z, zz);
    } 
    void Display(void)
    {
    cout<< z << endl;
    } 
}; 
int main()
{
    AptitudeString objStr('Learn', ' Java');
    objStr.Display();
    return 0; 
}

A Java Programming!

B C++ Programming!

C Learn C++ Programming!

D Learn Java Programming!

E Learn Java C++ Programming!

ANS:D - Learn Java Programming!

No answer description is available. Let's discuss.