public override void Speak() { Console.WriteLine("I am an Enlisted military member"); Console.WriteLine($"My rank is {rank.getRank()}"); Console.WriteLine($"I have a {W.getType()} and it goes {W.getNoise()}"); Console.WriteLine($"I have a {E.getType()}"); }
public override void Speak() { Console.WriteLine("I am an Officer"); Console.WriteLine($"My rank is {rank.getRank()}"); Console.WriteLine($"I have a {W.getType()} and it goes {W.getNoise()}"); Console.WriteLine($"I have a {E.getType()}"); }