Docsity

OOP Introduction in Python, Exercises of Programming Languages

Partial preview of the text

Download OOP Introduction in Python and more Exercises Programming Languages in PDF only on Docsity!

UML:

  1. sell method: This method prints a specific message with the customer name which is given by user to this method. 1
  1. apples_list method: This method returns us with the list of apples which was given to the class stored in the variable apples.
  2. barrel_size method: This print the size of barrel given to the class at the time of calling.
  3. description method: This apple prints some description about Barrel.
  4. apples_quantity method: This method gives us the quantity of apples with the help len(apples_list) function. 2