package package.b;
class ClassB {
public ClassB(BaseClass bc, XMLBase obj1) { }
}
import package.b.ClassB;
class A extends BaseClass {
public void function() {
TestXML obj1 = new TestXML();
ClassB bObj = new ClassB(this, obj1);
}
}
When I compile the above code, I get an error "cannot find symbol symbol : constructor ClassB(ClassA, Object1)"
But when I pass "null" for both arguments, it compiles fine.
Why so?
Can anyone help me?
TIA