Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Forest1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Tree tree1 = new Tree("Ela", 2.3, 12.1);
- Tree tree2 = new Tree(1.2, "Bor", 5.4);
- Tree tree3 = new Tree();
- tree1.Introduice();
- tree2.Introduice();
- tree3.Introduice();
- Tree.Color = "Yellow";
- tree1.Introduice();
- tree2.Introduice();
- tree3.Introduice();
- Console.WriteLine("The number of instances = {0}", Tree.Counter);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement