Created
November 4, 2014 08:08
-
-
Save icastell/57ac68e5222e7d8ed959 to your computer and use it in GitHub Desktop.
Knowladge test
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
class Aux { | |
String var; | |
public Aux(String var) { | |
this.var = var; | |
this.var = "aux"; | |
} | |
public void setVar(String var) { | |
this.var = var; | |
} | |
} | |
public void main() { | |
String hello = "hello"; | |
Aux aux = new Aux(hello); | |
print(hello); | |
print(aux.var); | |
aux.setVar(hello); | |
print(hello); | |
print(aux.var); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment