Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Coche
- {
- private int precio;
- public Coche()
- {
- precio = 14000;
- }
- public void descontar(int cantidad)
- {
- precio = precio-cantidad;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement