About 10,800,000 results
Open links in new tab
  1. How does Python's super () work with multiple inheritance?

    In fact, multiple inheritance is the only case where super() is of any use. I would not recommend using it with classes using linear inheritance, where it's just useless overhead.

  2. Understanding Python super() with __init__() methods

    Feb 23, 2009 · Super simply guarantees we call the correct next class's method in the method resolution order, whereas the other way hard-codes the next method to be called, which …

  3. coding style - Using "super" in C++ - Stack Overflow

    As for chaining super::super, as I mentionned in the question, I have still to find an interesting use to that. For now, I only see it as a hack, but it was worth mentioning, if only for the differences …

  4. java - When do I use super ()? - Stack Overflow

    I'm currently learning about class inheritance in my Java course and I don't understand when to use the super() call? Edit: I found this example of code where super.variable is used: class A { ...

  5. Python: 'super' object has no attribute 'attribute_name'

    After the base class's __init__ ran, the derived object has the attributes set there (e.g. some_var) as it's the very same object as the self in the derived class' __init__. You can and should just …

  6. inheritance - Passing superclass object as parameter to subclass ...

    In any case, in Java, I am wondering if it is possible to pass the super class object in as a parameter to a subclass and what the most efficient way of making that object's data available …

  7. python - Using super with a class method - Stack Overflow

    If we're using a class method, we don't have an instance to call super with. Fortunately for us, super works even with a type as the second argument. --- The type can be passed directly to …

  8. How to invoke the super constructor in Python? - Stack Overflow

    However, super () is quite a bit more complicated under-the-hood and can sometimes be counter-intuitive in multiple inheritance situations. On the plus side, super () can be used to handle …

  9. java - Meaning of Super Keyword - Stack Overflow

    The super keyword is not specific to Android. It's a concept belonging to OOP, and represents the parent class of the class in which you use it. In Android, it's mostly usefull when you create …

  10. Java: Calling a super method which calls an overridden method

    Jan 4, 2011 · The keyword super doesn't "stick". Every method call is handled individually, so even if you got to SuperClass.method1() by calling super, that doesn't influence any other …