In this assignment we are look and ObjectOriented Programmin
In this assignment we are look and Object-Oriented Programming concepts. You have been requested to develop the logic for program to process a class called RetailItem. This class contains the following attributes: item description, units in inventory, and price. This class is also suppose to contain the following methods
A method named purchase_item that used to purchase an item from the inventory
A method named get_total that recovers the cost of an item
A method show_item that display the description of a item and its cost
With the above information draw UML diagram. When you complete them drop them into the assignment dropbox.
Solution
UML Class Diagram Sample:-
Class Name
Attribute 1: attribute type
Attribute 2: attribute type
Attribute 3: attribute type
Attribute 4: attribute type
.
.
.
.
.
Method 1():
Method 2():
.
.
.
.
RetailItem
item description
units in inventory
price
purchase_item():units in inventory
get_total():price
show_item():item description, price
Object-Oriented Programming features:-
Object
Class
Abstraction
Encapsulation
Inheritance
Polymorphism
Overloading
---------------------------------------------------------------------------------------------
If you have any query, please feel free to ask.
Thanks a lot.
| Class Name | 
| Attribute 1: attribute type Attribute 2: attribute type Attribute 3: attribute type Attribute 4: attribute type . . . . . | 
| Method 1(): Method 2(): . . . . | 


