F
foodhigh
can someone explain to me?i feel puzzled
1, CBase * pba = new CDerived;
2, CBase * pbb = new CBase;
CBase is Base class and CDerived is Derived class,but what is the
difference between 1 and 2?
thanks a lot!
1, CBase * pba = new CDerived;
2, CBase * pbb = new CBase;
CBase is Base class and CDerived is Derived class,but what is the
difference between 1 and 2?
thanks a lot!