Problem statement
When a method in a derived class overrides a method in a base class, it is still possible to call the overridden method using the super() function.
If you write super().method(), it will call the method that was defined in the superclass.
You are given a partially completed code in the editor. Modify the code so that it returns the following:
Sample input
circle = XShape("Circle");
circle.getName()
Sample output
"Shape, Circle"
The Shape class is already prepended in the code and it has one property, sname and one method, getName(). getName() returns sname.
Parent and child class structures
Show hint
Coding exercise
First, take a close look, and then, design a step-by-step algorithm before trying the implementation. This problem is designed for your practice, so initially, try to solve it on your own. If you get stuck, you can always refer to the solution provided in the solution review.