Skip to main content

Timeline for Abstract Pet class

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Apr 12, 2014 at 0:18 history edited Jamal CC BY-SA 3.0
added 6152 characters in body
Apr 12, 2014 at 0:05 history edited Jamal CC BY-SA 3.0
added 8 characters in body
Dec 27, 2013 at 22:33 comment added radarbob (int) this.Mood > 0 defeats the purpose of enums don't you think? The default value of enum in C# is zero, but let's roll that into every enum: Undefined = 0. Then you can test like this if(! Mood.Undefined) …. Finally, if we ever add values to the enums, we probably just broke the code.
Dec 27, 2013 at 22:25 comment added radarbob DisplayPetInformation() - take the guts out and override ToString(). Then DisplayPetInformation() will simply be: Console Writeline(this). Typically where a string is expected ToString() is implicitly called.
Dec 24, 2013 at 7:57 comment added Zionmoose Excellent advise and good refactoring of the stuff you did. I've learned a lot!
Dec 24, 2013 at 7:56 vote accept Zionmoose
Dec 23, 2013 at 21:46 history answered adeel41 CC BY-SA 3.0