1
Answer

reachin the class' properties from a class define in the former

ozan sahal

ozan sahal

15y
2.2k
1
public class A { public A() { a=5; B theb=new B() } private int a; public int thea { get{return a;} set{a=value;} } public class B { public B(); public int b(int x) { //here i need to reach the property of class A } } how can i reach the value of thea property from the method defined inside the B which contained by A?
Answers (1)
Next Recommended Forum