a program using multaple inharitance in java