This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
myAA is a local class inside a method. Its type is not available outside of the method, you may have noticed that the getRef() method has a return type of the parent class AA. The instantiation is done inside the method, that is fine. [ June 24, 2005: Message edited by: soumya ravindranath ]