Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- public class Cargo
- {
- private int cargoWeight;
- private string cargoType;
- public Cargo(string cargoType, int cargoWeight)
- {
- this.CargoType = cargoType;
- this.CargoWeight = cargoWeight;
- }
- public string CargoType
- {
- get { return cargoType; }
- set { cargoType = value; }
- }
- public int CargoWeight
- {
- get { return cargoWeight; }
- set { cargoWeight = value; }
- }
- }
Add Comment
Please, Sign In to add comment