I am a bit confused with inheritance.
Say the parent has the following variables:
def __init__(self, model, color, mpg):
And the child class has an additional variable, say for e.g. battery_type
My question is,
Do we need to redeclare the variables of the parent class when we declare the sub class? As in
If we have to do the above, then why is that??
Or do we just declare the variables specific to the sub?