Can two classes contain member functions with the same name?

  1. No

  2. Yes, but only if the two classes have the same name

  3. Yes, but only if the main program does not declare both kinds

  4. Yes, this is always allowed


Correct Option: D

Find more quizzes: