Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A {
- A() {
- B b = new B(this);
- b.dependentMethod();
- }
- public void dependency() {
- }
- }
- class B {
- A a;
- B(A a) {
- this.a = a;
- }
- public void dependentMethod() {
- a.dependency();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement