Top "Subclassing" questions

A subclass, "derived class", heir class, or child class is a modular, derivative class that inherits one or more language entities from one or more other classes.

How to create a subclass in C#?

How do I create a subclass in C# for ASP.NET using Visual Studio 2010?

c# oop subclassing
Extending Generic Classes

public class MyGeneric<T, E> {} public class Extend1<T, E> extends MyGeneric<T, E> {} …

java class generics subclassing
If you overwrite a field in a subclass of a class, the subclass has two fields with the same name(and different type)?

I have 3 classes: public class Alpha { public Number number; } public class Beta extends Alpha { public String number; } public class Gama …

java subclassing jls
How to cast 'Class A' to its subclass 'Class B' - Objective-C

I'm using a framework which defines and uses 'ClassA', a subclass of NSObject. I would like to add some variables …

objective-c inheritance casting subclassing
Protocol func returning Self

I have a protocol P that returns a copy of the object: protocol P { func copy() -> Self } and …

swift protocols subclassing swift-protocols
Best practice, overriding __construct() versus providing init() method

When you are subclassing objects and want to extend the initialization code, there are two approaches. Overriding __construct(), and implementing …

php oop subclassing
UIView subclass with its own XIB

I created a custom UIView subclass, and would prefer to not layout the UI in code in the UIView subclass. …

iphone objective-c uiview interface-builder subclassing
How to subclass str in Python

I am trying to subclass str object, and add couple of methods to it. My main purpose is to learn …

python subclassing fluent-interface
Why do all backgrounds disappear on UITableViewCell select?

My current project's UITableViewCell behavior is baffling me. I have a fairly straightforward subclass of UITableViewCell. It adds a few …

objective-c cocoa-touch uitableview subclassing
How to subclass pandas DataFrame?

Subclassing pandas classes seems a common need but I could not find references on the subject. (It seems that pandas …

python pandas dataframe subclassing