Inheritance problem

I get the same thing. This code compiles. The problem would appear to be in code that you haven't posted, or possibly a stray non-ascii character hiding in the white space.

void setup() {}

void loop() {}

class AlphaClass {
public:
  void init();
};

class BetaClass : public AlphaClass {
public:
  void init();
};