Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 07 Aug 2011 07:28:45 -0500 Date: Sun, 07 Aug 2011 05:28:44 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: A question about a few variables in a class References: <2aas37dnmdjrkiqmgk2d1mfeblobpbdqdc@4ax.com> In-Reply-To: <2aas37dnmdjrkiqmgk2d1mfeblobpbdqdc@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 24 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.203.65 X-Trace: sv3-WKVN2yrLII20yfxoGvq2e/w0TF5OBWxGTYPRjSRsZlnoXjcpc9mNQ5cmeWCBZzYLZnNQxWlkbZlTWT2!XorrikaBic5qpQeae+s3i4yZYjv8UDT/2KO7JXchA0XkmBO3SYIiXWVn5WS/zEvMcVPdBEidPfdR!1IiXJ61FOqnIhBE623cjwIM9zVA8NQXNYLGdgnLS7MMJLA== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2254 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6849 On 8/6/2011 10:58 PM, Roedy Green wrote: > On Fri, 5 Aug 2011 14:31:30 -0700 (PDT), Chad > wrote, quoted or indirectly quoted someone who said : > >> Are 'width' and 'height' data fields in this class? My initial guess >> is yes > > they get passed to super. Most likely the super class will have some > width and height variable with may or may not be private. But there > is nothingh that says super has no save the values. It might just > display them on the console or some such, or compute an area and save > that. > > To solve this mystery, you must look at the code of the superclass. Not necessarily the code. If there are subclass accessible fields, they should be documented in the Rectangle documentation. If they are not documented, I would not pay any attention to their existence even if I found out about them by reading the code, because they might go away or change in the next version of Rectangle. Patricia