On Mar 11, 8:18 pm, Jerrold <[email protected]> wrote:
> Hi,
>
> Im a bit confused on the "double getSalePrice();" method to be created
> under the CAR class. Does this mean that i am to return the
> "regularPrice" or i have to create variable to compute for the
> salePrice?
>
> Can anyone give me there idea on this?
You should revise the notion of getters and setters in a class first.
(Hint: use Netbeans refactor encapsulate fields contextual menu).

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to