Top "Subclass" questions

A subclass is a class that derives or inherits from a parent (or super) class.

How do I check if a type is a subtype OR the type of an object?

To check if a type is a subclass of another type in C#, it's easy: typeof (SubClass).IsSubclassOf(typeof (BaseClass)); // …

c# reflection types subclass
Class extending more than one class Java?

I know that a class can implement more than one interface, but is it possible to extend more than one …

java class inheritance subclass multiple-inheritance
How do you find all subclasses of a given class in Java?

How does one go about and try to find all subclasses of a given class (or all implementors of a …

java class interface subclass
How to check if a subclass is an instance of a class at runtime?

In an android app test suite I have a class like this where B is a view: public class A …

java subclass instanceof
How do I check if an object's type is a particular subclass in C++?

I was thinking along the lines of using typeid() but I don't know how to ask if that type is …

c++ class subclass identification
What is a Subclass

What is a "subclass" in java? I know about classes and methods, but I do not know about subclasses.

java oop subclass
How do I check (at runtime) if one class is a subclass of another?

Let's say that I have a class Suit and four subclasses of suit: Heart, Spade, Diamond, Club. class Suit: ... class …

python subclass assert
How to find all the subclasses of a class given its name?

I need a working approach of getting all classes that are inherited from a base class in Python.

python subclass
Getting the name of a sub-class from within a super-class

Let's say I have a base class named Entity. In that class, I have a static method to retrieve the …

java class subclass super superclass
How to test if one java class extends another at runtime?

How to I test if a is a subclass of b? Class<?> a = A.class; Class<?> …

java subclass instanceof class-hierarchy