Ise there a way to use super style for the __init__function in the inherit
class Apple(Product):
def __init__(self,name,description):
Product.__init__(self,name,description)
---->
it automatic use this below style ?
class Apple(Product):
def __init__(self,name,description):
super(Apple,self).__init__(name,description)
def __init__(self,name,description):
Product.__init__(self,name,description)
---->
it automatic use this below style ?
class Apple(Product):
def __init__(self,name,description):
super(Apple,self).__init__(name,description)
Please sign in to leave a comment.
I remind it automatic uses "super" sometimes for me, but I forget how it do this
Lei