About 412,000 results
Open links in new tab
  1. java - What is a Subclass - Stack Overflow

    A subclass is a class that describes the members of a particular subset of the original set. They share many of characteristics of the main class, but may have properties or methods that are …

  2. CSS Classes & SubClasses - Stack Overflow

    Feb 18, 2009 · Is it possible, other than what I'm doing because it doesn't seem to work, to do this? I want to be able to have subclasses that are under a class to use the CSS specifically …

  3. How can I subclass a Pandas DataFrame? - Stack Overflow

    There is now an official guide on how to subclass Pandas data structures, which includes DataFrame as well as Series. The guide mentions this subclassed DataFrame from the …

  4. java - Do subclasses inherit private fields? - Stack Overflow

    A subclass does not inherit the private members of its parent class. However, if the superclass has public or protected methods for accessing its private fields, these can also be used by the …

  5. python - Subclass in type hinting - Stack Overflow

    I want to allow type hinting using Python 3 to accept sub classes of a certain class. E.g.:

  6. python - Understanding __init_subclass__ - Stack Overflow

    Jul 30, 2017 · Background __init_subclass__ was introduced as an alternative to creating metaclasses. Here is a 2-minute summary of PEP 487 in a talk by one of the core developers, …

  7. How do I declare custom exceptions in modern Python?

    How do I declare custom exception classes in modern Python? My primary goal is to follow whatever standard other exception classes have, so that (for instance) any extra string I …

  8. Call a method of subclass in Java - Stack Overflow

    Apr 23, 2010 · The reason for this is because the subclass could have some weird methods that the superclass doesn't have. In general, if you want to instantiate a class to call something in …

  9. python subclasscheck & subclasshook - Stack Overflow

    Nov 23, 2016 · The methods __subclasscheck__ and __subclasshook__ are used to determine if a class is regarded as subclass of another. However, their documentation is very limited, even …

  10. Inner Classes vs. Subclasses in Java - Stack Overflow

    Oct 24, 2018 · A subclass essentially shares an "is-a" relationship with its parent, whereas an Inner class shares a "has-a" relationship. For example, we have class yolk which is an inner …