Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!a2g2000prf.googlegroups.com!not-for-mail From: Chad Newsgroups: comp.lang.java.programmer Subject: A question about a few variables in a class Date: Fri, 5 Aug 2011 14:31:30 -0700 (PDT) Organization: http://groups.google.com Lines: 25 Message-ID: NNTP-Posting-Host: 66.81.50.100 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1312579891 6135 127.0.0.1 (5 Aug 2011 21:31:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 5 Aug 2011 21:31:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a2g2000prf.googlegroups.com; posting-host=66.81.50.100; posting-account=kTs1ygoAAACgG1TSoyECpovEyy-V6_8b User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUEHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2),gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6814 Let's say I have the following class..... public class ComparableRectangle extends Rectangle implements Comparable { public ComparableRectangle(double width, double height) { super(width, height); } public int compareTo(Object o) { if (getArea() > ((ComparableRectangle)o).getArea()) return 1; else if (getArea() < ((ComparableRectangle)o).getArea()) return -1; else return 0; } } Are 'width' and 'height' data fields in this class? My initial guess is yes. However, the fact that they are passed to super() makes me wonder otherwise. Chad