[Tutor] Help on shoppingcart
Alan Gauld
alan.gauld at yahoo.co.uk
Wed Feb 8 12:26:15 EST 2017
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
More information about the Tutor
mailing list