N
news.nucleus.com
The following code gives this compile error
The type A is already defined
My Question is
1. WHY?
2. What part of code needs removing to fix the problem?
Thanks
class Assign2_2
{
public static void main(String [] args)
{
new A();
}
}
class A{
A a = new A();
}
The type A is already defined
My Question is
1. WHY?
2. What part of code needs removing to fix the problem?
Thanks
class Assign2_2
{
public static void main(String [] args)
{
new A();
}
}
class A{
A a = new A();
}