On 08/02/17 10:04, Sasiliyu Adetunji wrote:

> Pls help me on this shoppingcart  assignment

Sure. You have a very specific set of tasks.
Which bit are you stuck on?
What have you tried?

Show us your code and we can help get it working.

> Create  a class called ShoppingCart

> Create a constructor...

> Create a method add_item...

> Create a method remove_item...

> If the quantity of an item to be removed ...

> Create a method checkout ...

> Create a class called Shop 

> that has a constructor which takes no arguments...

> Make sure Shop inherits from ShoppingCart.

> In the Shop class, override the remove_item method, 


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to