¡@

Home 

c++ Programming Glossary: souls

overloading operator delete, or how to kill a cat?

http://stackoverflow.com/questions/1939556/overloading-operator-delete-or-how-to-kill-a-cat

I define a class Cat that is constructed with several souls has an overloaded operator delete that does nothing and destructor.. does nothing and destructor that decrements the number of souls and also does some bragging . When souls reaches 0 the destructor.. the number of souls and also does some bragging . When souls reaches 0 the destructor calls the global delete and the cat..