Consider a class named CustomData. Which choice is a correct declaration syntax to overload the postfix ++ operator as a class member?

Advertisement

  • CustomData& operator++();
  • void operator++(CustomData);
  • CustomData operator++(CustomData);
  • CustomData operator++(int);
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.