On Tue, Jan 13, 2009 at 9:25 PM, Ana María Clos <[email protected]>wrote:
> Hello: > I am doing the homework of Java Inheritance and I have a doubt: > the Ford class has the double getSalePrice() method. The method is > calculated like this: // From the sale price computed from Car class, > subtract the manufacturerDiscount. > In the Car class there is not formula to calculate de getSalePrice() > method. Can I calculate getSalePrice() returning the regularPrice without > discount? > Yes. > Another doubt: > the Truck class is not used, can I create an instance of this class? > Only if you need to. > Thank you. Ana María > Cheers, --- Randell Benavidez http://randell.ph/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
