Advertisement
bravoit

classes and objects

Aug 13th, 2013
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace TestOOP
  4. {
  5.     class Bird
  6.     {
  7.         private string name;
  8.         private string color;
  9.         private int old;
  10.         ........................
  11.         .......................
  12.         int function1()
  13.         {
  14.             ..............
  15.             return ....;
  16.         }
  17.     }
  18.     class Program
  19.     {
  20.         static void Main(string[] args)
  21.         {
  22.             Bird bird1 = new Bird()
  23.             Bird bird2 = new Bird()
  24.             ......................
  25.             ......................
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement