Advertisement
sergAccount

Untitled

Oct 11th, 2020
1,895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package app53;
  7.  
  8. public class Truck {
  9.     // грузоподъемность авто
  10.     double capacity;
  11.     // get, set - методы
  12.     // alt + insert
  13.     public double getCapacity() {
  14.         return capacity;
  15.     }
  16.     //
  17.     public void setCapacity(double capacity) {
  18.         this.capacity = capacity;
  19.     }    
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement