Re: Logging "Added a Browser" and "Added a Grazer"


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

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?




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]