I have been working on derived classes, and I have a class that is called MyTime that has a derived class TimeClock. When I try to compile the following it gives me a cannot return from a (ctor) error, as far as I knew none of my code was returning anything other than a TimeClock obj,
my TimeClock.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//timeclock header
//derived from MyTime class
//danschwartz
#ifndef TIMECLOCK_H
#define TIMECLOCK_H
#include "MyTime.h"
class TimeClock : public MyTime
{
public:
//constructors
TimeClock();
private:
}
#endif