Skip to main content

Timeline for Abstract Pet class

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
Dec 23, 2013 at 19:49 comment added rolfl In which case, have abstract methods that return: getMoodThreshold(), getHungryThreshold(), getFeedMessage(), etc.
Dec 23, 2013 at 19:46 comment added Zionmoose I definitely see where you are coming from, but if I'm not mistaken, your solution appears to not meet the parameters of what the homework was designed to be. Three of the methods in the base class Pet had to be abstract so that you could define the functionality. The idea, even if it is more complicated then it needs to be, is to just get us to understand how things like abstract, override and virtual work.
Dec 23, 2013 at 16:14 history answered rolfl CC BY-SA 3.0