Introduction to Programming

Question #3

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

CS201 · Midterm#3

Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?

  1. A
    Class-name operator +() ;
  2. B
    Class-name operator +(int) ;
  3. C
    Class-name operator ++() ;
  4. D
    Class-name operator ++(int)
Show correct answer

Correct answer: C. Class-name operator ++() ;

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