Here is an example...

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

Animal::~Animal() {}

This is a dummy example. However, it can prevent people from creating an Animal directly.
(#108082@0)
2001-6-21 -05:00

回到话题: Learn from numnum---try to answer Wendywendy's question

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT杂谈

URL:   
http://www.rolia.net/zh/post.php?f=0&p=108082