Deriving classes

I have to derive a class named box from a class named rectangle. How exactly would I go about doing so?
1
2
3
4
5
6
7
8
9
class Rectangle  // <- a class named Rectangle
{
    // ...
};

class Box : public Rectangle // <- a class named Box, derived from Rectangle
{
    // ...
};
Thank you!
Topic archived. No new replies allowed.