Created
January 25, 2011 22:24
-
-
Save ProgDan/795817 to your computer and use it in GitHub Desktop.
LP2: Exercícios de Revisão - 11
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
final class Aaa { | |
int xxx; | |
void yyy() { | |
xxx = 1; | |
} | |
} |
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 Bbb extends Aaa { | |
final Aaa finalref = new Aaa(); | |
final void yyy() { | |
System.out.println("In method yyy()"); | |
finalref.xxx = 12345; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment