Hey guys im a little confused in these super() methods , in my example lets say we have the code ( two classes ) :
class Human:
Species = 'HomoSapiens'
def __init__(self , name):
self.name = name
class Animals(Human):
def __init__(self , animal_name , name):
super().__init__(name)
self.animal_name = animal_name
Human1 = Human('Asim')
Animal1 = Animals('Dog')
``` So What i really want to do is to inherit the Human1 Object **name** attribute from the Human Class. I'm a Beginner so be kind to me. : )
Any help is appreciated.
