Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @author alessio
- */
- public class Moto extends Veicolo
- {
- private int tempi;
- private String tipo;
- Moto(int tempi)
- {
- this.tempi = tempi;
- this.tipo = tipo;
- }
- @Override
- public String toString()
- {
- return "\nTipo: " + this.tipo + "\nMarca: " + super.marca + "\nAnno: " + super.anno + "\nCilindrata: " + super.cilindrata + "\nTempi: " + this.tempi;
- }
- public void setTempi(int tempi)
- {
- this.tempi = tempi;
- }
- public int getTempi()
- {
- return this.tempi;
- }
- public void setTipo(String tipo)
- {
- this.tipo = tipo;
- }
- public String getTipo()
- {
- return this.tipo;
- }
- }
Add Comment
Please, Sign In to add comment