class A
{
void disp()
{
System.out.println("Hello m Dikaoo kya");
}
}
class B extends A
{
void moll()
{
System.out.println("nye nye item chiye kya");
}
}
class MultiInheri extends B
{
void china()
{
System.out.println("sara ka sara mall kharab hai");
}
public static void main(String args[])
{
MultiInheri ab=new MultiInheri();
ab.disp();
ab.moll();
ab.china();
}
}
No comments:
Post a Comment