Created
May 15, 2012 01:56
-
-
Save delucas/2698498 to your computer and use it in GitHub Desktop.
UNLaM - Clase Contador, un ejemplo básico de Java
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
package ar.edu.unlam.tallerweb.eclipse; | |
public class Contador { | |
private int valorActual; | |
public void contar(){ | |
this.valorActual++; | |
} | |
public void resetear(){ | |
this.valorActual = 0; | |
} | |
public int mostrarValorActual(){ | |
return this.valorActual; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment