Advertisement
sergAccount

Untitled

Jul 10th, 2021
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 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 com.mycompany.ex17;
  7.  
  8. public class Truck {    
  9.     // грузоподъемность
  10.     private double capacity;
  11.  
  12.     public double getCapacity() {
  13.         return capacity;
  14.     }
  15.  
  16.     public void setCapacity(double capacity) {
  17.         this.capacity = capacity;
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement