Top "Subclass" questions

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

Expose a private Objective-C method or property to subclasses

According to some official talk, a class in Objective-C should only expose public methods and properties in its header: @interface …

objective-c inheritance subclass visibility declared-property
How do I override inherited methods when using JavaScript ES6/ES2015 subclassing

I have created a class that extends Array. I want to execute arbitrary code before calling the inherited push function.

class inheritance ecmascript-6 overriding subclass
Private members in Java inheritance

I was told that for a Java subclass it can inherit all members of its superclass. So does this mean …

java inheritance subclass superclass private-members
Java - is there a "subclassof" like instanceof?

Im overriding an equals() method and I need to know if the object is an instance of a Event's subclass (…

java subclass equals instanceof
Override @property setter and infinite loop

There is Class A with: @interface ClassA : NSObject { } @property (nonatomic, assign) id prop1; @end @implementation @synthesize prop1; @end then I …

objective-c ios overriding subclass
How to subclass Python list without type problems?

I want to implement a custom list class in Python as a subclass of list. What is the minimal set …

python list subclass
Why shouldn't I subclass a UIButton?

I've asked a few questions on stack overflow about subclassing a UIButton, and a couple of people have informed me …

objective-c ios uibutton uikit subclass
The type name {myUserControl} does not exist in the type {myNamespace.myNamespace}

I have a problem (obviously the question :) I have a project-- MyProject... hence the rest of the project uses a …

c# namespaces designer subclass
Understanding upper and lower bounds on ? in Java Generics

I am really having a tough time understanding the wild card parameter. I have a few questions regarding that. ? as …

java generics subclass superclass
C++ friend inheritance?

Does a subclass inherit, the main class' friend associations (both the main class' own and other classes friended with the …

c++ subclass friend