static void Main(string[] args) { BaseDocument baseDocument = new BaseDocument("Doc.1", "#1", DateTime.Now.Date) { }; Passport passport = new Passport("Russia", "Kirill", DateTime.Now.Date, "237423") { }; baseDocument.WriteToConsole(); passport.WriteToConsole(); Console.ReadKey(); }
static void Main(string[] args) { BaseDocument baseDocument = new BaseDocument() { Title = "Doc.1", Number = "#1", IssueDate = DateTime.Now.Date, }; Passport passport = new Passport() { Title = "Doc.2", Number = "#2", IssueDate = DateTime.Now.Date, Country = "Russia", PersonName = "Kirill" }; baseDocument.WriteToConsole(); Console.ReadKey(); }