I have a situation where i have to do like
class A{
B b;
class B extends ContainerView{
public B(int x,int y, String s1, Styring s2){
super(x,y,200,500);
}
}
class C{
void m(){
if(...){
B b=new B(x,y,raj,esh);
b.something....
else
B b=new B(x,y,esh,raj);
The problem is x and y is unknown to the class C and if i declare it as int x,y in class C then it's behaving improperly....
What to do? Thanks in Advance