warXx_

Problem 9. Google - NOT FINISHED

Jun 28th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.30 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. class Person
  8. {
  9.     public string personName;
  10.  
  11.     public Person(string personName)
  12.     {
  13.         this.personName = personName;
  14.     }
  15.  
  16.     public Company company;
  17.     public Car car;
  18. }
  19.  
  20. class Company
  21. {
  22.     public string companyName;
  23.     public string companyDepartment;
  24.     public decimal companySalary;
  25.  
  26.     public Company()
  27.     {
  28.         companyName = "";
  29.         companyDepartment = "";
  30.         companySalary = 0;
  31.     }
  32. }
  33.  
  34. class Car
  35. {
  36.     public string carModel;
  37.     public int carSpeed;
  38.  
  39.     public Car()
  40.     {
  41.         carModel = "";
  42.         carSpeed = 0;
  43.     }
  44. }
  45.  
  46. class Pokemon
  47. {
  48.     public string pokemonName;
  49.     public string pokemonType;
  50.  
  51.     public Pokemon()
  52.     {
  53.         pokemonName = "";
  54.         pokemonType = "";
  55.     }
  56. }
  57.  
  58. class Parents
  59. {
  60.     public string parentName;
  61.     public string parentBirth;
  62.  
  63.     public Parents()
  64.     {
  65.         parentName = "";
  66.         parentBirth = "";
  67.     }
  68. }
  69.  
  70. class Children
  71. {
  72.     public string childName;
  73.     public string childBirth;
  74.  
  75.     public Children()
  76.     {
  77.         childName = "";
  78.         childBirth = "";
  79.     }
  80. }
  81.  
  82. class Program
  83. {
  84.     static void Main(string[] args)
  85.     {
  86.  
  87.     }
  88. }
Add Comment
Please, Sign In to add comment