Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.

Monday, July 5, 2010

To show multiple-inheritence


/*To show multiple-inheritence*/


import java.lang.*;
class A
{
        A()
        {
        }
        void display()
        {
        System.out.println("class A");
        }
}
class B extends A
{
        B()
        {
        }
        void display1()
        {
        display();
        System.out.println("class B");
        }
}
class C extends B
{
        C()
        {
        }
        void display2()
        {
        display1();
        System.out.println("class C");
        }
}
class multi_inheritance
{
        public static void main(String arg[])
        {
        C c1=new C();
        c1.display2();
        }
}

ADS

How to earn online

How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786

AddMe

Bookmark and Share