class IAnimal { virtual void walk()=0; virtual ~IAnimal(){} };
IAnimal* animal = new Lion(); delete animal;
沒有留言:
張貼留言