Advertisement
sergAccount

Untitled

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