social1986

Untitled

Feb 18th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5.  
  6. public class Cargo
  7. {
  8.     private int cargoWeight;
  9.     private string cargoType;
  10.  
  11.     public Cargo(string cargoType, int cargoWeight)
  12.     {
  13.         this.CargoType = cargoType;
  14.         this.CargoWeight = cargoWeight;
  15.     }
  16.  
  17.     public string CargoType
  18.     {
  19.         get { return cargoType; }
  20.         set { cargoType = value; }
  21.     }
  22.  
  23.  
  24.     public int CargoWeight
  25.     {
  26.         get { return cargoWeight; }
  27.         set { cargoWeight = value; }
  28.     }
  29.  
  30. }
Add Comment
Please, Sign In to add comment