class Product
{
public:
private:
};
class Toys
{
public:
private:
};
class Foods
{
public:
private:
};
Product *createFactory()
{
switch(a)
{
case 1:
break;
case 2:
break;
case 3:
break;
default:
break;
}
}