Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fecha SiguienteDia(){
- //Instrucciones
- if (this.EsCorrecta()){
- this.d = this.d + 1;
- if (!(this.EsCorrecta())){
- this.d = 1;
- this.m = this.m + 1;
- this.a = this.a;
- if (!(this.EsCorrecta())){
- this.m = 1;
- this.a = this.a + 1;
- }
- }
- }
- return this;
- }
Add Comment
Please, Sign In to add comment