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.
