This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
int clientsCount = 10; | |
Queue<Client> queue = new Queue<Client>(); | |
AutoService autoService; | |
for (int i = 0; i < clientsCount; i++) | |
queue.Enqueue(new Client()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
const int CommandExit = 0; | |
Zoo zoo = new Zoo(); | |
int number; | |
bool isWalking = true; | |
while (isWalking) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
User user = new User(); | |
while (user.IsManaging) | |
{ | |
user.ManageAquarium(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
Battlefield battlefield = new(); | |
battlefield.EnterGame(); | |
} | |
} | |
class Battlefield |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
SuperMarket superMarket = new SuperMarket(); | |
superMarket.AddCustomer(); | |
superMarket.PaymentProcess(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
UserInterface userInterface = new(); | |
userInterface.MainMenu(); | |
} | |
} | |
class UserInterface |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
Terminal userInterface = new Terminal(); | |
userInterface.ShowMainMenu(); | |
} | |
class Train |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
Player player1 = new Player("Mr. KickAss", 300); | |
Vendor vendor1 = new Vendor("Chichi", 500); | |
Shop tradeMenu = new Shop(player1, vendor1); | |
tradeMenu.ShowMainMenu(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
User user = new User(); | |
user.ShowMenu(); | |
} | |
} | |
class Book |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
public static void Main() | |
{ | |
Player player = new Player(); | |
player.ShowMenu(); | |
} | |
} |