Skip to content

Instantly share code, notes, and snippets.

@JoseluDAM2000
Created October 24, 2016 10:23
Show Gist options
  • Save JoseluDAM2000/989466726012848054b46fe73b93a421 to your computer and use it in GitHub Desktop.
Save JoseluDAM2000/989466726012848054b46fe73b93a421 to your computer and use it in GitHub Desktop.
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