Objects and Classes - Programming

Q1:

Which of the following statement is correct about the program given below?
#include<iostream.h> 
class AptitudeData
{
    int x, y, z; 
    public:
    AptitudeData(int xx, int yy, int zz)
    {
        x = ++xx;
        y = ++yy;
        z = ++zz;
    }
    void Show()
    {
        cout<< '' << x++ << ' ' << y++ << ' ' << z++;
    } 
}; 
int main()
{
    AptitudeData objData(1, 2, 3);
    objData.Show();
    return 0; 
}

A The program will print the output 1 2 3.

B The program will print the output 2 3 4 .

C The program will print the output 4 5 6.

D The program will report compile time error.

ANS:A - The program will print the output 1 2 3.

No answer description is available. Let's discuss.