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
using System; | |
namespace Poker | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Player lutik = new Player("Lutik", 0, ConsoleColor.Cyan); | |
Player geralt = new Player("Geralt", 50, ConsoleColor.Red); |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace PasswordGenerator | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Temp | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
using System; | |
using System.Globalization; | |
namespace Temp | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int intAge; |
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
using System; | |
using System.Collections.Generic; | |
namespace Temp | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<Entity> list = new List<Entity> |
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
using System; | |
namespace Temp | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Example example1 = new Example(5, 7, -5); // создать объект - экземпляр класса |
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
using System; | |
namespace Temp | |
{ | |
internal class Program | |
{ | |
// НАГЛЯДНОЕ ПОСОБИЕ ДЛЯ ПОЯСНЕНИЯ ИНКАПСУЛЯЦИИ | |
static void Main(string[] args) | |
{ |
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
using System; | |
namespace Temp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Knight figtherKnigth = new Knight(100, 10); | |
Barbarian figtherBarbarian = new Barbarian(120, 2, 7, 2); |
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
using System; | |
namespace Temp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Performer worker1 = new Performer("Вася"); | |
Performer worker2 = new Performer("Петя"); |
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
using System; | |
using System.IO; // необходимо добавить компонент для работы с файлами | |
using System.Threading; // необходимо добавить компонент для организации многопоточности | |
namespace Temp | |
{ | |
internal class Pacman | |
{ | |
static void Main(string[] args) | |
{ |