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 196 times
Edit
4
Community EvaluationsNo one has reviewed this question yet, be the first!