Skip to main content
fixed typo
Source Link
Jonas Bötel
  • 4.5k
  • 1
  • 23
  • 27

You need to call the constructor of employee in the constructor of employeeException.

employeeException::employeeException(string message)
  : employee(42)
{
     ...
}

Because the default employee constructor is private as soon as you declare another onone.

You need to call the constructor of employee in the constructor of employeeException.

employeeException::employeeException(string message)
  : employee(42)
{
     ...
}

Because the default employee constructor is private as soon as you declare another on.

You need to call the constructor of employee in the constructor of employeeException.

employeeException::employeeException(string message)
  : employee(42)
{
     ...
}

Because the default employee constructor is private as soon as you declare another one.

Source Link
Jonas Bötel
  • 4.5k
  • 1
  • 23
  • 27

You need to call the constructor of employee in the constructor of employeeException.

employeeException::employeeException(string message)
  : employee(42)
{
     ...
}

Because the default employee constructor is private as soon as you declare another on.