Error : 'expected unqualified-id before 'int'@

Hello,
I'm quite new to Arduino and c++ and I was trying to create a class but I keep getting this error. 'expected unqualified-id before 'int'' tells me that maybe I have a syntax error somewhere, but if I do I just cannot find it. Here is the code:

#ifndef Sensor
#define Sensor
#include "Arduino.h"

class Sensor { //main class
  public:
    Sensor(int _pin, int _ledPin, int _warningPin) { //constructor
      pin = _pin;
      ledPin = _ledPin;
      warningPin = _warningPin;
      pinMode(_pin, INPUT);
      pinMode(_ledPin, OUTPUT);
      pinMode(_warningPin, OUTPUT);
    }
  private:
    int pin;
    int ledPin;
    int warningPin;
}
#endif

class TempSensor: public Sensor { //inherited class
using Sensor::Sensor;
  public:
    double calcTemp() {
      temp = analogRead(pin) * 0.322265625; 
      return temp;
    }
  private:
    double temp;
}

Can you see any thing wrong? Thanks for any help!

Class bodies need to end with a ;.

This isn't helping:

#ifndef Sensor
#define Sensor

Use something that doesn't have the exact same name as the class

PaulS:
Class bodies need to end with a ;.

I'm sorry but what do you mean by class bodies? All the methods and parameters seem to have semicolons.

  private:
    double temp;
}

There