static void Main(string[] args) { // Try out your skills with inheritance here! HouseCat simon = new HouseCat("Simon", 12.0); Console.WriteLine($"Simon is tired: {simon.Tired}"); Console.WriteLine($"Simon is hungry: {simon.Hungry}"); simon.Eat(); simon.Sleep(); Console.WriteLine($"Simon is tired: {simon.Tired}"); Console.WriteLine($"Simon is hungry: {simon.Hungry}"); Console.WriteLine(simon.Noise()); Console.WriteLine(simon.Purr()); }
static void Main(string[] args) { // Try out your skills with inheritance here! HouseCat august = new HouseCat("August", 5.0); august.Eat(); Console.WriteLine(august.Tired); Console.WriteLine(august.Noise()); august.Sleep(); Console.WriteLine(august.Hungry); HouseCat benji = new HouseCat("Benji"); Console.WriteLine(benji.Weight); }