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!
Similar QuestionsMore questions about C++
3
Which statement concerning constructors is false ?1
The operator + has been defined for Complexe objects thanks to an intern overloading.1
Write a C++ program that uses static variables.1
Write a C++ program that displays 111111.1
What does the following code return ?
int main() {
int i = 1;
int& j(i);
i = 4;
cout << j << endl;
j = 6;
cout << i << endl;
return 0;
}