i tried to create an object of a class created with a different file and it worked. But when i try to create the object after packaging it didnt compile. why is that? pls if u know the correct reason email me or post here (XXX@XXX)
WORKED CODES......
//A.java
class A{
A(){
B b=new B();
}// const end
public static void main(String[] arg){
new A();
}// main end
}// class end
//B.java
class B{
}
DIDNT WORKED.............
//A.java
package pac;
class A{
A(){
B b=new B();
}// const end
public static void main(String[] arg){
new A();
}// main end
}// class end
//B.java
package pac;
class B{
}