class Base
{
public:
Base (int a, int b);
private:
int a,b;
};
class Derived1
{
public:
Derived1():base(1,2){}
};
类似Derived2, Derived 3, 其中含有自己的数据成员
现在需要把这些衍生物体装在单一州,因此,正想把这种物品放在像基地建筑商这样的基地。
Base::Base(int a, int b)
{
CBaseMgr::GetInstance()->AddtoVector(this);
}
一、建构
单吨集装箱是否含有所有衍生物体?
我怀疑,这是否能够把物体添加到底部的集装箱内,还是应当由衍生器做。