Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. class Coche
  2. {
  3. private int precio;
  4.  
  5. public Coche()
  6. {
  7. precio = 14000;
  8. }
  9. public void descuento(int cantidad)
  10. {
  11. precio = precio - cantidad;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement