static void Main(string[] args) { Person p = new Person("Толстой","Лев"); Show(p); Show("Привет, Вася"); Console.WriteLine(p); Document doc = new Document { Title = "Секреты демокр. партии ", Price = 1000000, Shifr = "S123$$$" }; Show(doc); Console.ReadKey(); }
static void Main(string[] args) { Person p = new Person("Tolstoi", "Lev"); // Person p1 = new Person("Krin", "Olga"); Show(p); Show("Hello"); Document d = new Document { Title = "Secret partii", Price = 1000000, Shifr = "f521456" }; Show(d); Console.ReadKey(); }