>>>>> "L" == Lionel Thiry <lthiryidontwantspam / skynetnospam.be> writes:

L> Would those modifications "correct" its behavior? (I hope I'm not too
L> annoying asking to test code for me)

 no it does the same

0 cats, 0 dogs, 0 animals
a new dog
a new dog
2 cats, 2 dogs, 2 animals
a new cat
a new cat
a new cat
5 cats, 5 dogs, 5 animals

 you are still accessing the class variable in Animal


-- 

Guy Decoux