OOP Introduction in Python, Exercises of Programming Languages

OOP Introduction in Python | This is the beginning of OOP in Python

Typology: Exercises

2019/2020

Uploaded on 06/28/2020

sheikh-tech
sheikh-tech 🇵🇰

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
UML:
1.sell method:
This method prints a specific message with the
customer name which is given by user to this
method.
1
pf2

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