Top "Subclass" questions

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

How to initialize an NSObject's subclass on iPhone?

I want to write some methods in a class so that other classes can call these methods using [instance methodName:…

iphone initialization class-design subclass
Properly Subclassing UITextField in swift

So i have these textfields that i realised that they all have same properties, so i created new class called "…

ios swift uitextfield subclass uitextfielddelegate
Understanding __init_subclass__

I finally upgraded my python version and I was discovering the new features added. Among other things, I was scratching …

python class subclass python-3.6 metaclass
java, initialize SubClass from SuperClass

public class Base { //long list of attributes // no Constructor using fields // no init methode // i cannot change this class } now …

java initialization subclass superclass extends
how to set UIButton type in UIButton Subclass

I am subclassing the UIButton, what i want is to set the button type to Round Rect. Button.h @interface …

ios uibutton subclass
Subclass in type hinting

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

python subclass type-hinting
In what ways are subtypes different from subclasses in usage?

A subtype is established when a class is linked by means of extending or implementing. Subtypes are also used for …

java subclass subtype
Subclassing tuple with multiple __init__ arguments

The following code works: class Foo(tuple): def __init__(self, b): super(Foo, self).__init__(tuple(b)) if __name__ == '__…

python inheritance subclass tuples
SPARQL: Get all the entities of subclasses of a certain class

I've to get all the instances of a class C and subclasses (direct or indirect) of C, in SPARQL. I …

entity instance subclass sparql
Returning an objects subclass with generics

With an abstract class I want to define a method that returns "this" for the subclasses: public abstract class Foo { ... …

java generics subclass parameterized return-type