Skip to content

Instantly share code, notes, and snippets.

@jimwhite
Created September 13, 2014 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimwhite/8755a8a7e9263f5a2154 to your computer and use it in GitHub Desktop.
Save jimwhite/8755a8a7e9263f5a2154 to your computer and use it in GitHub Desktop.
package org.ifcx.snippets;
/**
* Created by jim on 9/13/14.
*/
public class Foo {
protected int x;
int getX() { return x + 1; }
}
package org.ifcx.snippets
class Bar extends Foo {
void doJob() {
println x
println super.x
println super.@x
}
}
Bar b = new Bar()
b.@x = 1
b.doJob()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment