FileDocCategorySizeDatePackage
SampleSuper.javaAPI DocExample1334Tue Dec 12 18:58:48 GMT 2000None

SampleSuper

public class SampleSuper extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

      Button b = new Button();
      printSuperclasses(b);
   
static voidprintSuperclasses(java.lang.Object o)

      Class subclass = o.getClass();
      Class superclass = subclass.getSuperclass();
      while (superclass != null) {
         String className = superclass.getName();
         System.out.println(className);
         subclass = superclass;
         superclass = subclass.getSuperclass();
      }