package confusion;
class Sup
{
void print()
{
System.out.println("hello");
}
}
public class Sub extends Sup
{
public static void main(String[] args)
{
Sub ob= new Sup();
ob.print();
}
}
Posted 20 September 2012 - 05:26 AM
package confusion;
class Sup
{
void print()
{
System.out.println("hello");
}
}
public class Sub extends Sup
{
public static void main(String[] args)
{
Sub ob= new Sup();
ob.print();
}
}