Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 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 tracciaaereomobile;
  7.  
  8. /**
  9. *
  10. * @author gioce
  11. */
  12. public class Aliante extends Aereomobile {
  13. private final double efficienza;
  14.  
  15. public Aliante(String codice, double efficienza){
  16. this.efficienza = efficienza;
  17. }
  18.  
  19. public double getEfficienza() {
  20. return efficienza;
  21. }
  22.  
  23. @Override
  24. public String toString() {
  25. return super.toString() + "-" + "Tipo=" + "Aliante-Efficienza=" +
  26. efficienza;
  27.  
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement