I'm not sure what you want to do but I think you are after something along the lines of:
public abstract class Person { ........... }
public class Child extends Person { ........... }
The logic also follows that:
public class Adult extends Person
This assumes that adults and children are all people.
HI
if a class as abstract methods, for that instance is not possible to create. why because ABSTRACT is nothing but not clear. while creating any objects or instances of classes, that has to not abstract class.
and same thing for interfaces also not able to create instances. becasue that is complete abstart....
abstaract class A
{
void methodA();
}
class B extends A
{
void method()
{
System.out.println("hi");
}
public static void main(String args[])
{
//A a = new A();--it is not possible..
A a =new B();it is possible
}
}