Last active
January 21, 2016 14:02
-
-
Save briansalvattore/c63b0a2bd1e54ad52778 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class GalletaDeChipsChocolate{ | |
private int chips; | |
private String marca; | |
/*Método crear una nueva galleta de chocolate de una marca*/ | |
public GalletaDeChipsChocolate(String nuevaMarca){ | |
marca = nuevaMarca; | |
} | |
/*Método para obtener la cantidad de chips que tiene mi galleta*/ | |
public int getChips(){ | |
return chips; | |
} | |
/*Método para cambiar la cantidad de chips que tiene mi galleta*/ | |
public void setChips(int numeroChips){ | |
chips = numeroChips; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment