Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 60109 invoked from network); 9 Jan 2005 00:57:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Jan 2005 00:57:26 -0000 Received: (qmail 42894 invoked by uid 500); 9 Jan 2005 00:57:24 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 42863 invoked by uid 500); 9 Jan 2005 00:57:24 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 42850 invoked by uid 99); 9 Jan 2005 00:57:24 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from garuda-95.cablenet.com.ni (HELO ags01.agsoftware.dnsalias.com) (165.98.147.95) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 08 Jan 2005 16:57:22 -0800 Received: from ags01.agsoftware.dnsalias.com (localhost.localdomain [127.0.0.1]) by ags01.agsoftware.dnsalias.com (8.12.11/8.12.10) with ESMTP id j090vH6h015995 for ; Sat, 8 Jan 2005 18:57:17 -0600 Received: (from apache@localhost) by ags01.agsoftware.dnsalias.com (8.12.11/8.12.11/Submit) id j090vH38015994; Sat, 8 Jan 2005 18:57:17 -0600 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to agallardo@agssa.net using -f Received: from 10.0.0.5 (SquirrelMail authenticated user agallardo); by www.agssa.net with HTTP; Sat, 8 Jan 2005 18:57:17 -0600 (CST) Message-ID: <35464.10.0.0.5.1105232237.squirrel@www.agssa.net> In-Reply-To: <41E07BC9.7040706@gmx.de> References: <20050108222058.29788.qmail@minotaur.apache.org> <41E07BC9.7040706@gmx.de> Date: Sat, 8 Jan 2005 18:57:17 -0600 (CST) Subject: Re: inner vs. nested classes (was: svn commit: r124685) From: "Antonio Gallardo" To: dev@cocoon.apache.org User-Agent: SquirrelMail/1.4.3a-6.FC2 X-Mailer: SquirrelMail/1.4.3a-6.FC2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sab, 8 de Enero de 2005, 18:33, Joerg Heinicke dijo: > On 08.01.2005 23:20, antonio@apache.org wrote: >> Author: antonio >> Date: Sat Jan 8 14:20:56 2005 >> New Revision: 124685 >> >> URL: http://svn.apache.org/viewcvs?view=rev&rev=124685 >> Log: >> inner classes -> nested classes > > What's the reason for, the advantage of this change? Inner classes has an automatic access to the members of the enclosing class (outer object). To do that, inner classes stores a reference to the particular object. If we don't need the connection between the inner class object and the outer class object, then we can make the inner class "static". And this is commonly called "nested class". Also a nested class means: 1. We don't need an outer-class object to create an object of the nested class. 2. We cannot access a non-static outer-class object from an object of a nested class. Hope this helps. Best Regards, Antonio Gallardo