wingman007

2015_OOP_Forest_Program

Apr 15th, 2015
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Forest
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Tree tree1 = new Tree();
  14.             Tree tree2 = new Tree("oak", 2.3, 12);
  15.             Tree tree3 = new Tree(1.2, "pain", 10);
  16.  
  17.             tree1.GetInfo();
  18.             tree2.GetInfo();
  19.             tree3.GetInfo();
  20.  
  21.             Tree.Color = "Purple";
  22.  
  23.             tree1.GetInfo();
  24.             tree2.GetInfo();
  25.             tree3.GetInfo();
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment