Question: java zybook please help me with java on zybook.please make sure its work on zybook because zybook are very strict. thanks OBJECTIVE The purpose of
java zybook






please help me with java on zybook.please make sure its work on zybook because zybook are very strict. thanks
OBJECTIVE The purpose of this assignment is for students to gain a better understanding of Java inheritance and mechanics. Due on Zybooks, Oct 31st, 11:59pm. polymorphism RIPTION You have to desig n an e-commerce shopping cart. These require classes Item, Electronics, Food, Dress, Cart and Main Another class Test (Test,java) willbe provided to you in Blackboard. This You do not need to upload Test java ITEM CLASS Your Item class should contain: class will contain main) method and help you test your own code . Attributes (protected) o String name-name of the Item ouble price price of the item . Methods (pubiic) pid setName(String n) - sets the name of Item o void setPrice double p)-sets the price of Item String getName) retrieves name o double getPrice) -retrieves price o String formattedOutput0 returns a string containing detail of the ltem as 'Name price (without the quotes, no space anly comma separating the values, for example Apple,1.00 Constructors o Item(String n, double p) -constructor, sets name-n & price-p o Item default constructor, sets name"& price 0 ELECTRONICS CLASS Your Electronics class inherits from Item. It should have following . Attributes (private) o String model o int year . Methods (public) 502 PM the model of E o void setModel(Stri O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
