Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36176

Re: Where am i going wrong

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Where am i going wrong
Date Sun, 8 Jan 2017 21:20:30 -0500
Organization Aioe.org NNTP Server
Lines 33
Message-ID <o4us1b$1ed0$1@gioia.aioe.org> (permalink)
References <ebaa620e-2ecc-429c-9a6e-f71fd3e9c945@googlegroups.com>
NNTP-Posting-Host PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:36176

Show key headers only | View raw


On 1/8/2017 8:37 PM, SuperGiirl wrote:
> public class Mobile extends Gadget
> {
>     // instance variabrles
>     private int creditRemaining;
>
>     /**
>      * Constructor for objects of class Mobile
>      */
>
>     public Mobile(int creditRemaining, int theWeight, double thePrice, String theModel, String theSize);
>     {
>            super(theWeight, thePrice, theModel,theSize);
>            creditRemaining = RemainingCredit;
>     }
>
> this is the coding for the subclass, the superclass of gadget
> can someone please tell me where I am going wrong, as I am new to this.

It is a bit hard to tell with a description of what the problem is.

But a guess:

creditRemaining = RemainingCredit;

->

this.creditRemaining = creditRemaining;

Arne


Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Where am i going wrong SuperGiirl <kainattshafiq90@gmail.com> - 2017-01-08 17:37 -0800
  Re: Where am i going wrong Arne Vajhøj <arne@vajhoej.dk> - 2017-01-08 21:20 -0500
  Re: Where am i going wrong Davej <galt_57@hotmail.com> - 2017-01-08 19:12 -0800

csiph-web