static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; // Game g1 = new Game("monopoly", 19.99m, new DateTime(1970, 01, 31)); // Game g2 = new Game("Scrabble", 9.99m, new DateTime(1980, 06, 30)); ComputerGame cg1 = new ComputerGame("Sonic", 19.99m, new DateTime(1990, 03, 15), "U"); ComputerGame cg2 = new ComputerGame("Mario", 10.99m, new DateTime(1995, 11, 17), "7"); // DisplayGame(g1); //DisplayGame(g2); DisplayGame(cg1); DisplayGame(cg2); }
static void Main(string[] args) { // Game g1 = new Game("Monster Hunter 4 Ultimate", 45.00m, new DateTime(2015, 06, 06)); // Game g2 = new Game() { ReleaseDate = new DateTime(2019, 8, 25) }; // Console.WriteLine(g1); // Console.WriteLine(g2); ComputerGame cg1 = new ComputerGame("Outer Worlds", 45.00m, new DateTime(2019, 10, 25), "18"); ComputerGame cg2 = new ComputerGame("CyberPunk 2077", 69.99m, new DateTime(2020, 4, 26), "18"); Console.WriteLine(cg1); Console.WriteLine(cg2); DisplayGame(cg1); DisplayGame(cg2); }
static void Main(string[] args) { Game g1 = new ComputerGame("Monopoly", 19.99m, new DateTime(1970, 01, 31), 8); Game g2 = new ComputerGame("Cluedo", 15.99m, new DateTime(1965, 02, 26), 12); // Game g2 = // new Game() { Price = 10.99m, ReleaseDate = new DateTime(2000, 6, 15) }; ComputerGame cg1 = new ComputerGame("Pong", 49.99m, new DateTime(1985, 08, 20), 12); ComputerGame cg2 = new ComputerGame("Galaga", 55.99m, new DateTime(1983, 10, 19), 16); //Console.WriteLine(g1.ToString()); DisplayGame(g1); DisplayGame(g2); DisplayGame(cg1); DisplayGame(cg2); }