using System; namespace ConsoleApp8 { public class Book { public Book() { Console.WriteLine("Book constructed"); } ~Book() { Console.WriteLine("Book destructed"); } } class Program { static void Main(string[] args) { var book = new Book(); Console.ReadKey(); } } }
No comments:
Post a Comment