kisame1313

Untitled

Jul 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main ( string [] args )
  6.     {
  7.  
  8.     }
  9. }
  10.  
  11. class House
  12. {
  13.     ConsoleColor HouseColor;
  14.     string Adress;
  15.     int MaxTenants;
  16.     private Tenant [] Tenants;
  17.  
  18.     public House ( ConsoleColor col, string adr, int max )
  19.     {
  20.         HouseColor = col;
  21.         Adress = adr;
  22.         MaxTenants = max;
  23.         Tenants = new Tenant [max];
  24.     }
  25. }
  26.  
  27. class Tenant
  28. {
  29.     string Name;
  30.     byte Age;
  31.  
  32.     public Tenant (string name, byte age)
  33.     {
  34.         Name = name;
  35.         Age = age;
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment