FileDocCategorySizeDatePackage
OverrideField.javaAPI DocExample602Sat Nov 25 12:55:46 GMT 2000None

OverrideField

public class OverrideField extends Object
Demonstration of overriding fields.

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

		System.out.println("A's version of getAttr returns: " +
			new A().getAttr());
		System.out.println("B's version of getAttr returns: " +
			new B().getAttr());
		A c = new B();
		System.out.println("C's version of getAttr returns: " +
			c.getAttr());