Advertisement
Guest User

Untitled

a guest
Jun 13th, 2019
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public class Cargo {
  2. private int cargoWeight;
  3. private String cargoType;
  4.  
  5. public Cargo(int cargoWeight, String cargoType){
  6. this.cargoWeight = cargoWeight;
  7. this.cargoType = cargoType;
  8. }
  9.  
  10. public String getCargoType() {
  11. return cargoType;
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement