Posted by Vic on April 21, 2001 at 03:26:52:
In Reply to: Logging "Added a Browser" and "Added a Grazer" posted by Vic on April 21, 2001 at 03:23:15:
heh, nevermind, i wasnt thinking!
: Since i derived Browser from Grazer, everytime i create a new browser, it logs both "Added a Browser" and "Added a Grazer" since the constructor of browser is called which calls the constructor of Grazer. Is there a simpler way to avoid this problem rather than making a separate herbivore and carnivore class?
Post a Followup