Maybe it is the late hours :) But can any one tell why parent class does pull variables from the child
Foo {
public String myString = "My test string of Foo"
public printOutString () {
println this.myString
}
}
Bar extends Foo {
public String myString = "My test string of Bar"
}
Foo.printOutString() //prints out "My test string of Foo" as expected
Bar.printOutString() //prints out "My test string of Foo" as not expected thought it would take the String from Bar instead