Created
October 24, 2016 10:23
-
-
Save JoseluDAM2000/989466726012848054b46fe73b93a421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Coche | |
{ | |
private int precio; | |
public Coche() | |
{ | |
precio = 14000; | |
} | |
public void descontar(int cantidad) | |
{ | |
precio = precio - cantidad; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment