I do not think so. 

Lets look at it.

abstract class Product --> abstract class Electronic --> *class MP3Player 
... implements computeSalePrice()*

So you are implementing public double computeSalePrice() in MP3Player 
class. That's absolutely correct.

Abstract class which has super (parent) class do not have to implement any 
of parent class methods because it is still abstract class. Abstract class 
is not here to implement anything. Class derived from abstract class has to 
implement functions. 

I recommend you to go again over "Inheritence" lesson to understand this 
better.
--
Martin

Dne čtvrtek, 20. února 2014 7:21:22 UTC+1 Joseph John napsal(a):
>
> Hi 
> In the lab notes,  1.2 Build MyOnlineShopUsingAbstractClass program
> The Electronics class which is a abstract class extended from Product 
> class has to implement all the abstract method of Parent Product, But in 
> the notes abstract method  computeSalePrice() is not implemented in 
> Electronics.java class
>
> Attached is the screen shot of the notes
> thanks 
> Joseph John
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JPassion.com: Java Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/jpassion_java.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to