Why can\'t I access the parent class variable with the super keyword?
With the below code, the output is:
feline cougar c c
The answer to the original question is simple: There is only one variable called type. Its initial value gets overwritten by c. Remember that there is only one object, so one variable. Prashant's code creates a second variable and obviously that one doesn't overwrite the original string in the parent class.