Obtenez des solutions complètes à vos questions avec Zoofast.fr. Trouvez rapidement et facilement les informations dont vous avez besoin avec notre plateforme de questions-réponses précise et complète.

In this part of the course work, you are required to design and implement a class called HP Laptop with instance variables specific to this type of items, a constructor with parameters which initialises class data members and invokes the Item in Stock constructor when it is invoked using inheritance concept in java and initialises data members of Item _in_stock class as well. This class should be designed and implemented in a way that it overrides getItemCategoryO that returns the category of the item, getItemName0 that returns
HP Laptop and
getItemDescription0 that returns "HP 15 11G 8GB 1TB"
. The Class should also override the get_item_details0 method to display the complete details of an item.
Task 2.1. Re-draw UML class diagram which was drawn in part 1 of the course work with this new class
"HP Laptop". Relationships should also be represented.
Task 2.2. Implement a class called Item check with a main method to test HP Laptop class by defining object of the class and invoking methods.
Testing is an integral part of development. Write suitable test cases in the given format below for your classes.

In This Part Of The Course Work You Are Required To Design And Implement A Class Called HP Laptop With Instance Variables Specific To This Type Of Items A Const class=

Sagot :