Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.CARNet.hr!gregory.BNet.hr!not-for-mail From: Josip Almasi Newsgroups: comp.lang.java.programmer Subject: Re: Accessibility of suBclass-fields from suPERclass (reflection) Date: Sun, 17 Aug 2014 12:51:28 +0200 Organization: B.net Hrvatska d.o.o. Lines: 11 Message-ID: References: <53eecf6a$0$300$14726298@news.sunsite.dk> NNTP-Posting-Host: cpe-94-253-159-47.zg.cable.xnet.hr Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: gregory.bnet.hr 1408272689 18367 94.253.159.47 (17 Aug 2014 10:51:29 GMT) X-Complaints-To: abuse@globalnet.hr NNTP-Posting-Date: Sun, 17 Aug 2014 10:51:29 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:29703 On 08/17/2014 02:22 AM, Eric Sosman wrote: > On 8/16/2014 6:37 PM, Andreas Leitgeb wrote: >> Overall-operations, (e.g. resetting all values of a given subclass >> instance) are done from Base-class by use of reflection. > > Why by reflection? Why not by a reset() method, abstract in > the superclass? Because it means coding in each subclass? Regards...