新增加base模块,包括封装好的基础类库,头文件位于devel/include/base下
继承demo:
class base
{
public:
virtual void foo(){...}
};
class derived : public base
{
public:
void foo(){...}
};
应该为
组合demo:
class base
{
public:
void foo(){...}
};
class derived
{
public:
void foo(const base&){...}
};