700+ câu trắc nghiệm Ngôn ngữ lập trình C có đáp án - Phần 19

A class declaring another class as a friend will:

15/25

A class declaring another class as a friend will:

Have wine and cheese with that other friend

Allow that class to declare an instance of it in its list of private variables

Allow the other class (the one declared as friend) to access to the declaring class’s private variables

Allow the class declaring the other as a friend to access the declared class’s private variables

Giải thích

Chọn đáp án C