In SubClass A you do not need to instantiate, you can access any function of subclass A using singing. creating a new object creates a new instance, so it reinitializes the entire property for that instance. therefore, you cannot do anything about it.
self always be right for accessing same class methods and property.
Hopefully now you can understand why yourself, and not make another new instance.
And [super MA] must call the method of the class A MA method, there is no case when MB calls the MA call.
I have a test, there is no error, all OOPs concepts follow in the c lens, you can call the superclass method by calling the method with the super keyword.
So, maybe you are something wrong. just check it out.
source share