Suppose a program has the following class declaration:
// Declaration of CheckPoint class.class CheckPoint{ private: int a; protected: int b; int c; void setA(int x) { a = x;} public: void setB(int y) { b = y;} void setC(int z) { c = z;}};
Answer the following questions regarding the class:
A) Suppose another class, Quiz, is derived from the CheckPoint class. Here is the first line of its declaration:
class Quiz: private CheckPoint
Indicate whether each member of the CheckPoint class is private, protected, public, or inaccessible:
a
b
c
setA
setB
setC
B) Suppose the Quiz class, derived from the CheckPoint class, is declared as
class Quiz: protected Checkpoint
Indicate whether each member of the CheckPoint class is private, protected, public, or inaccessible:
a
b
c
setA
setB
setC
C) Suppose the Quiz class, derived from the CheckPoint class, is declared as
class Quiz: public Checkpoint
Indicate whether each member of the CheckPoint class is private, protected, public, or inaccessible:
a
b
c
setA
setB
setC
D) Suppose the Quiz class, derived from the CheckPoint class, is declared as
class Quiz: Checkpoint
Is the CheckPoint class a private, public, or protected base class?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.