Easy to Make Mistakes in Class Inheritance

This started out as a task to learn simple class inheritance. To work out the syntax and idiomatic way to use them in C++. I just kept typing things that I thought would work and the compiler would slowly teach me what was wrong.

class rectangle : public shape
{
public:
    rectangle(float half) : shape(half)
More…