Question: create shooping cart program by this provided information interace -oProductinterface o +double computeSalePriced + double getRegularPricep o+void setRegularPrice(double regularPrice) impleents interTace Product intertace Bookinterface Electronicsintertace
create shooping cart program by this provided information
interace -oProductinterface o +double computeSalePriced + double getRegularPricep o+void setRegularPrice(double regularPrice) impleents interTace Product intertace Bookinterface Electronicsintertace -double regularPrice +Sinng gettianufacturer) +String getPublishet vold setPublishenString publisherj +Product(double regularPrice + double computeSalePriceQ o+int getfearPublisheco +void setYearP ublished(int?arPublished) o+double getRegula Price) ?+void setRegularPrice(double regularPrice) implements -String manufacturer Electronicsidouble regularPrice, String manufacturer) o 3tring getManufacturer0 o tvoid setklanutacturerSbing manufacturer) Book Sting publisher -int year Published Bookdoule regularPrice, Sring publisher, ini rearPublishec) o double computealePrice0 O Sbing getPublisher MP3Player vold setPublisher(Sting publisher) int geYearPublishedo int size -String color ?-void serre arPublished(int yearPublished TVidouble regularPfice, String manufacturer, int seMP3Playe double regularPrice, String manufacturer, String colorn o+double computesalePrice0 o+double computesalePrice0 +String getColor0 o void setColor String color) Cartoon ChildrenBook Main 4-String characterName -int age +Maino ?+Cartoon[double regularFnce, string publisher, int yearPublished, string characterName) ChildrenBookidouble regularPrice, String publisher, int yearPublish double computeSalePriceo double computeSalePricel0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
