Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 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 oop2016.contest1.gruppo23;
  7.  
  8. /**
  9.  *
  10.  * @author Francesco Avallone
  11.  */
  12. public abstract class Aereomobile
  13. {
  14.     private final String codice;
  15.     private final int numeroSequenziale;
  16.     private static int allocati;
  17.    
  18.     public Aereomobile(String codice)
  19.     {
  20.         this.codice=codice;
  21.     }
  22.  
  23.     public String getCodice() {
  24.         return codice;
  25.     }
  26.  
  27.     public int getNumeroSequenziale() {
  28.         return numeroSequenziale;
  29.     }
  30.  
  31.     public static int getAllocati() {
  32.         return allocati;
  33.     }
  34.  
  35.     @Override
  36.     public String toString() {
  37.         return "Aereomobile n."+
  38.                 numeroSequenziale+" - "+
  39.                 "Codice = "+codice;//To change body of generated methods, choose Tools | Templates.
  40.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement