These 3 Classes (PreferredCustomerBill and NewCustomerBill and Item) reside in a separate "billing" folder in your "shopping" folder which is package "shopping.billing" thus enforcing protected access, as Tester.java will be run from a different (default) package. *PreferredCustomerBill has a constructor that allows a preferred customer object to be constructed from a former NewCustomer object. *Preferred customers can add as many Items as they please. *Preferred customers always get the discount, so you have a getTotal() over-ride. *Preferred customers need a different toString() to display TOTAL correctly. *Preferred customers implements the remove(Item) method, but new customers cannot Data fields listed at top of Class, and they are all private. Fields are not initialized in these private declarations (Java defaults prevail). Only exception to above are public static final constants, which never change. Constructors (that's plural) follow the data field specifications, and those initialize all the fields. Always have a default constructor that defines the assumed defaults for all fields (verify if needed). No redundant constructor code, so the multiple argument version is used for others with this() calls. No redundant method code, so a detailed math formula is in one place, then used by others. Accessor methods are grouped together. Mutators grouped together. No random placements in Class.
Get a customized solution on this task at emuktask.comHomework Help on emuktask.com, you can order your academic assignment from one of our 300+ project experts. Hire your expert directly, without overpaying for agencies and affiliates!
POST A QUESTION
EmukTask.com guarantee you peace of mind, gives the value of your money, and trust for us to help you with your assignments. We assure you of original work that meets your academic and project’s needs. We at EmukTask.com have a mark of quality, professionalism, and timely delivery of given projects.
+1 (289) 803-6873
Request a Callback
Drop Us a Line