using System;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
var robots = new List<Robot>{new Robot()};
foreach (var robot in robots)
robot.Walk();
// Business Requirement 1: A robot should be able to fight
// robot.Fight();
}
Console.WriteLine("Press any key to continue");
Console.ReadLine();
public class Robot
public void Walk()
Console.WriteLine("I'm walking");