Thanks martin Thanks for the explanation
On Mon, Feb 24, 2014 at 12:05 AM, Martin <[email protected]> wrote: > 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 a topic in the > Google Groups "JPassion.com: Java Programming" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jpassion_java/MZZ7SxaV7Fc/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.
