Time Limit: 1sec Memory Limit:256MB
Description
The class Human is defined as follows:
class Human {
public:
virtual string getSkinColor() = 0;
};
You are to derive two classes European and African from Human, with the skin colors "white" and "black" respectively.
Your submitted source code should include the whole implementation of the classes European and African, but without the class Human.
No main() function should be included.
class European : public Human
{
public:
virtual string getSkinColor() { return "white"; }
};
class African : public Human
{
public:
virtual string getSkinColor() { return "black"; }
};