Having issues with C subclass Almost done with the code but

Having issues with C++ subclass. Almost done with the code but dont know how to implement a subclass constructor.

http://pastebin.com/gburfgvu

Solution

Implement the below in the sub class declaration under public section :

HourlyEmployee(string name,string ssn) :: Employee(string name,string ssn)

{

cout<<\"sub class constructor called \";

}

The above code automatically initializes superclass constructor i.e creates object with the attrubute values passed and initialized.

Having issues with C++ subclass. Almost done with the code but dont know how to implement a subclass constructor. http://pastebin.com/gburfgvuSolutionImplement

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site