I read this question and thought that would easily be solved (not that it isn’t solvable without) if one could write: @Override public String toString() { return super.super.toString(); }...
  • May 8, 2022
  • 0 Comments
class A: def __init__(self): print("world") class B(A): def __init__(self): print("hello") B() # output: hello In all other languages I’ve worked with the super constructor is invoked implicitly. How does...
  • May 4, 2022
  • 0 Comments