Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A {
- public A();
- public void bar() {
- // jak zmienić tu b.variable
- }
- }
- class B {
- public B() {
- variable = 0;
- }
- public void foo() {
- a = new A();
- a.bar();
- }
- private int variable;
- private A a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement