Hey all. I have another problem with classes. I have 3 classes A, B and C. B extends C and class A is where objects from B and C will be used. Below is the syntax of what am trying to say
class A{
private int o,p;
protected B x;
//code;
}
public class B{
private int o,p;
}
public class C extends B{
private int q;
}
//object created in the main
C Obj=new C(1,2,3);
I want to use the object q in the class A. How can i do that?