MCQs > IT & Programming > C++ > Answer the question that follows. class X { int i; protected: float f; public: char c; }; class Y : private X { }; Referring to the sample code above, which of the following data members of X are accessible from class Y

C++ MCQs

Consider the sample code given below and answer the question that
follows.
class X {
int i;
protected:
float f;
public:
char c;
};
class Y : private X { };
Referring to the sample code above, which of the following data members
of X are accessible from class Y

Answer

Correct Answer: f

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it