Created
May 1, 2018 21:47
-
-
Save arehmandev/04dbcde599f24c98a9039ac77818790f to your computer and use it in GitHub Desktop.
groovy class
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 Example { | |
String name; | |
int ID; | |
static void main(String[] args) { | |
Example man = new Example() | |
man.getStudent() | |
println(man.name + " is " + man.ID) | |
} | |
def getStudent() { | |
this.name = "Joe"; | |
this.ID = 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment