private Resource res;
public void useResource(Resource res) {
this.res = res;
}
public void anotherMethodCalledFromSomewhereElse() {
res.use();
}
--
blogom
private Resource res;
public void useResource(Resource res) {
this.res = res;
}
public void anotherMethodCalledFromSomewhereElse() {
res.use();
}
--
blogom