Should be:
```c++
virtual float height() const = 0;
```