Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 1 year ago

Which kind of functions can access private member variables of a class? PLZ HELP!!!!?

Which kind of functions can access private member variables of a class?

a. Friend functions of the class

b. Private member functions of the class

c. None of the above

d. Public member functions of the class

e. All of the above can access private member variables

I answered a and it was incorrect

Attachment image

1 Answer

Relevance
  • John
    Lv 7
    1 year ago
    Favorite Answer

    e

    but I mean all of the above functions, no intention to include "c".

    Why friend, private and public functions cannot access private member variables of a class.

Still have questions? Get your answers by asking now.