Multiple choice

A class named employee must have a constructor whose name is ___________.

  1. employer

  2. ~employee

  3. constructor

  4. employee

  5. any legal C++ name

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct option as constructor has the same name as that of class.