class sample9
{
public static void main(String []args)
{
sample s=new sample(); s.walk(); s.fly();
}
}
class CannotFlyException extends Exception
{
}
interface Bird
{
public abstract void fly() throws CannotFlyException;
}
interface Bipe
{
public void walk();
}
abstract class noFlyer
{
public void fly()
{
System.out.print("cannot fly" );//LINE A
}
}
class sample extends noFlyer implements Bird, Bipe //LINE B
{
public void walk()
{
System.out.print("walk" );
}
}
Which of the following options is the output of this program?
Reveal answer
Fill a bubble to check yourself