Top "Subclass" questions

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

override "private" method in Python

Consider a class with a "private" method such as: class Foo(object): def __init__(self): self.__method() def __method(self): …

python oop methods subclass private-members
Disallow subclasses from overriding Java method

Suppose I have a method in a Java class, and I don't want any subclass of that class to be …

java class methods subclass
What is the correct (or best) way to subclass the Python set class, adding a new instance variable?

I'm implementing an object that is almost identical to a set, but requires an extra instance variable, so I am …

python subclass set instance-variables
Subclass of class with synthesized readonly property cannot access instance variable in Objective-C

In the superclass MyClass: @interface MyClass : NSObject @property (nonatomic, strong, readonly) NSString *pString; @end @implementation MyClass @synthesize pString = _pString; @end …

objective-c ios inheritance subclass
What's the difference betwen a UserControl and a ContentControl?

According to all of the documentation, when you're creating a non-lookless control, you're supposed to subclass UserControl. However, UserControl is …

wpf user-controls subclass
iOS: Changing subclass from UIView to UIScrollView in a storyboard

I have created a storyboard based project. In one of the view controller's view requires some extra elements to be …

ios uiview uiscrollview subclass
Reclassing an instance in Python

I have a class that is provided to me by an external library. I have created a subclass of this …

subclass python
Extending MediaController for android

I am using a VideoView and the MediaController for an app I am working on. I simply wanted to have …

android subclass mediacontroller
In .NET, can you use reflection to get all non-inherited methods of a class?

Because of this issue here, I'm trying to write a custom JsonConverter that handles cases where you subclass a list …

c# reflection subclass base-class class-members
Why doesn't Apple allow subclassing of UINavigationController? And what are my alternatives to subclassing?

I'm currently building a tabbed iPhone application where each tab's view controller is an instance of UINavigationController, and where every …

iphone cocoa-touch uikit subclass subclassing