Introduction to Programming

Question #39

Read the question, compare the options, and review the correct answer below.

CS201 · Midterm#39

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

  1. A
    Friend functions of the class
  2. B
    Private member functions of the class
  3. C
    Public member functions of the class
  4. D
    Friend, private and public functions
Show correct answer

Correct answer: A. Friend functions of the class

Check community answers against your course notes.
← More practice questionsTake a timed test