3 Levels of inheritance with abstract class in Java?

Hi,

Is it valid to have 3 levels of inheritance in Java, as described by example below:

public abstract class AbstractClass1

{

public abstract method1a();

public abstract method1b();

}

public abstract class AbstractClass2 extends AbstractClass1

{

public abstract method2a();

public abstract method2b();

}

public class realClass extends AbstractClass2

{

public realClass() {}

public void method1a()

{

System.out.println("Hello1a");

}

public void method1b()

{

System.out.println("Hello1b");

}

public void method2a()

{

System.out.println("Hello2a");

}

public void method2b()

{

System.out.println("Hello2b");

}

}

The reason I am getting an " java.lang.NoClassDefFoundError" for AbstractClass2... I just wanted to know is it because of the 3 levels of inheritance or because of some other reason....

Thanks,

aganesha

[1051 byte] By [aganesha] at [2007-9-26 4:21:53]
# 1
There's nothing wrong with the code other than the methods in AbstractClass1 and AbstractClass2 aren't declared properly (they need return types).
eriklindquist at 2007-6-29 17:26:25 > top of Java-index,Archived Forums,Java Programming...