1 // Copyright 2006 The Android Open Source Project 2 3 /** 4 * Miranda testing. 5 */ 6 public class Main { main(String[] args)7 public static void main(String[] args) { 8 MirandaClass mir = new MirandaClass(); 9 System.out.println("MirandaClass:"); 10 System.out.println(" inInterface: " + mir.inInterface()); 11 System.out.println(" inInterface2: " + mir.inInterface2()); 12 System.out.println(" inAbstract: " + mir.inAbstract()); 13 14 /* try again through abstract class; results should be identical */ 15 MirandaAbstract mira = mir; 16 System.out.println("MirandaAbstract / MirandaClass:"); 17 System.out.println(" inInterface: " + mira.inInterface()); 18 System.out.println(" inInterface2: " + mira.inInterface2()); 19 System.out.println(" inAbstract: " + mira.inAbstract()); 20 21 MirandaAbstract mira2 = new MirandaClass2(); 22 System.out.println("MirandaAbstract / MirandaClass2:"); 23 System.out.println(" inInterface: " + mira2.inInterface()); 24 System.out.println(" inInterface2: " + mira2.inInterface2()); 25 System.out.println(" inAbstract: " + mira2.inAbstract()); 26 } 27 } 28