compiler error seems to think I am trying to return a value on a ctor

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 

My TimeClock.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//cpp file inherits from MyTime
//Dan Schwartz
#include "TimeClock.h"




//constructor

TimeClock::TimeClock()  
:MyTime()
{

}
never mind, I found my problem, in the .h file I didn't end the } with a ;

Is this why most cpp dev's are bald?? ERRRGH. Well now I know
Topic archived. No new replies allowed.