Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
55
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.  
  10. public void descontar(int cantidad)
  11. {
  12. precio=precio-cantidad;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement