I try to make a Toy class here
class Toy:
def __init__(self,name,ID,price,age):
self.__ToyName = name
self.__ToyID = ID
self.__Price = price
self.__MinimumAge = int(age)
##some methods here
And when i try to make a sub-class computer game, i need to make 7 arguments(with 5 from the Toy class)to instantiating the computer game class, and it shows "too many arguements (7/5)"
class ComputerGame(Toy):
def __init__(self,name,ID,price,age,catogory,console):
Toy.__init__(self,name,ID,price,age)
self.__Catogory = catogory
self.__Console = console
What should I do to with this situation?