Advertisement
sergAccount

Untitled

Dec 13th, 2020 (edited)
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 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.ja9;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Truck extends Car{
  13.    
  14.     private double capacity;
  15.     //
  16.  
  17.     public double getCapacity() {
  18.         return capacity;
  19.     }
  20.  
  21.     public void setCapacity(double capacity) {
  22.         this.capacity = capacity;
  23.     }        
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement