-
-
Save tbuehlmann/5454204 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
class HelloTestObject { | |
String st; | |
HelloTestObject(String st) { | |
this.st = st; | |
} | |
void speak() { | |
System.out.println(st); | |
} | |
} | |
class deleteme { | |
public static void main (String[] args) { | |
HelloTestObject a=new HelloTestObject("printme!"); | |
a.speak(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment