derived class error

Jan 28, 2017 at 10:41pm
I keep get an error saying: error expected class-name befor '{' token

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  #ifndef EXTCLOCKTYPE_H
#define EXTCLOCKTYPE_H

#include <string>

class extClockType: public clockType
{ //<<<<------------------------------------- the error is right here
    public:
        void setZone(std::string zone);
        void getZone(std::string& zone) const;
        void printZone() const;
        extClockType(std::string zone);
        extClockType();

    private:
        std::string TZ;
};

#endif 
Last edited on Jan 28, 2017 at 10:59pm
Jan 28, 2017 at 11:44pm
You have not defined clockType.
Topic archived. No new replies allowed.