Advertisement
dsavov_02

nz brat otkazvam se

Apr 13th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 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. public class Program
  7. {
  8.     public static void Main()
  9.     {
  10.     }
  11. public class Truck{
  12.     public string truck;
  13.     public string bigTruck;
  14.     public string litleTruck;
  15.     public string loadcapacity;
  16.     public string multiplefreight;
  17.    
  18.     public Truck (string truck, string bigTruck, string litleTruck, string loadcapacity , string multiplefreight)
  19.     {
  20.         this.truck = truck;
  21.         this.bigTruck = bigTruck;
  22.         this.litleTruck = litleTruck;
  23.         this.loadcapacity = loadcapacity;
  24.         this.multiplefreight = multiplefreight;
  25.     }
  26.     }
  27. class Freight{
  28.     string water;
  29.     string silk;
  30.     string rock;
  31.     double kg;
  32.    
  33.     public Freight(string water, string silk, string rock, double kg)
  34.     {
  35.         this.water = water;
  36.         this.silk = silk;
  37.         this.rock = rock;
  38.         this.kg = kg;
  39.     }
  40.   }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement