Here is an example...

jabber (jabber)
class Animal{
virtual ~Animal() =0;
} ;

Animal::~Animal() {}

This is a dummy example. However, it can prevent people from creating an Animal directly.
2001-6-21 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Learn from numnum---try to answer Wendywendy's question

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT杂谈