Introduction to Programming

Question #23

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

CS201 · Midterm#23

Like member functions, ______ can also access the private data members of a class.

  1. A
    Non-member functions
  2. B
    Friend function
  3. C
    Any function outside class
  4. D
    None of the given options
Show correct answer

Correct answer: B. Friend function

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