A class declaring another class as a friend will:

A class declaring another class as a friend will:

A. Have wine and cheese with that other friend

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

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

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

Hướng dẫn

Chọn C là đáp án đúng

Tags: