Python Forum
Problems with inheritance with classes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with inheritance with classes
#2
2 parameters defined, 3 arguments given
class IceCreamStand(Restaurant):
 
def __init__(self, restaurant_name, cuisine_name):
super().__init__(restaurant_name, cuisine_name)
self.flavors = flavors

IceCream = IceCreamStand('dominos', 'pizza', 'BBQ')
Reply


Messages In This Thread
RE: Problems with inheritance with classes - by ThomasL - Jun-15-2019, 08:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Inheritance vs Instantiation for Python classes mr_byte31 7 2,884 Oct-14-2021, 12:58 PM
Last Post: mr_byte31
  Unexpected Output using classes and inheritance langley 2 1,955 Jul-04-2019, 09:33 AM
Last Post: langley
  Problems with importing classes in different folder Xeraphim 3 3,392 Nov-08-2017, 03:20 PM
Last Post: Larz60+
  Using classes? Can I just use classes to structure code? muteboy 5 5,068 Nov-01-2017, 04:20 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020