Here is my question : is it possible using inheritance, to have a parent class with a DEFAULT argument that would automatically be assigned to an object (whether it is a child or parent class object) BUT if an object (using the child class), wants to over-write that attribute, it can do that as well?? The child would be using super and inheritance. Just some sample code below to show what I mean.
WORKS : As soon as I create an object, such as a= F1(), since there is already a default argument, it assigns the object as sick="flu". If I create another object b=F1("mumps"), it will be over-written.
DOESN'T WORK (yet) : If I create a child class c=F2("bed rest"), I want to take the default of sick="flu" from the parent since it is inheriting that. Right now, it tells me it is missing an argument
WORKS: If I want to over-write the parent argument of "sick" with an object using the Child class d= F2("measles","doctor"), it will also do this.
Hopefully that makes sense. Thanks in advance.