Объясните как работает программа (как можно подробнее) - C#
Формулировка задачи:
Необходимо понимание синтаксиса кода.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fein_snippet_test_001
{
class Program
{
static void Main(string[] args)
{
Stuff.DutchEmpire royalDutchShell = new Stuff.DutchEmpire();
Stuff.DutchEmpire royal = new Stuff.DutchEmpire(" Colonialism was not so good ", " WW2 ");
Stuff netherlands = new Stuff();
Console.WriteLine(royal);
Console.WriteLine(royalDutchShell);
Console.ReadKey();
}
}
class Stuff
{
double dutch;
double afrikaans;
public class DutchEmpire
{
string southAfrica;
string zumaIsNotMyPresident;
public override string ToString()
{
return "My political statement " + southAfrica + zumaIsNotMyPresident;
}
public DutchEmpire()
{
southAfrica = "Apartheid was not good for anyone ";
zumaIsNotMyPresident = "Zuma want's to expell all good farmers ";
}
public DutchEmpire(string sa, string president)
{
southAfrica = sa;
zumaIsNotMyPresident = president;
}
}
}
}Решение задачи: «Объясните как работает программа (как можно подробнее)»
textual
Листинг программы
Console.ReadKey();