ADMICRO

In the following code, which of the following variables can be accessed in “Friend”?

class Base
{
public: int a;
protected: int b;
private: int c;
};
 
class Derived : Base
{
    int d;
    friend Friend;
};
class Friend
{
    Derived derived;
};

 

Hãy suy nghĩ và trả lời câu hỏi trước khi xem đáp án

ADSENSE / 1
Câu hỏi này thuộc ngân hàng trắc nghiệm dưới đây, bấm vào Xem chi tiết để làm toàn bài
ZUNIA12
ZUNIA9
AANETWORK