Question from the C++ - Fundamentals test

Write a C++ class with a constructor that takes two arguments.

Hard

Which statement(s) is (are) true ?

class A {
protected:
    int x;
public:
    A(int x) : x(x) {}
};

class B : public A {
private:
    int y;
public:
    B(int x, int y) : x(x), y(y) {}
};
Author: SamuelStatus: PublishedQuestion passed 144 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!