Excuse me if i am wrong somewhere
the code u have written should be something like this
class abc
{
abc()
{
method();
}
void method()
{
System.out.println("method in base class");
}
}
class xyz extends abc
{
public static void main(String args[])
{
xyz ob=new xyz();
// xyz ob=new abc();
}
void method()
{
System.out.println("method in derived class");
}
}
try running the code then see the output.Also try removing the statement code in call xyz.
waiting for u reply
------------------