Top "Subclass" questions

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

cannot init a class object : objective-C

I'm trying to make a simple subclass of CCNode, but I can't create the object. It gives me the error "* …

objective-c cocos2d-iphone subclass init
Is subclassing in Objective-C a bad practice?

After reading lots of blogs, forum entries and several Apple docs, I still don't know whether extensive subclassing in Objective-C …

objective-c oop subclass
Class extension vs. subclassing in Swift?

I'am using a third-party framework that provides a class whose instances only have properties. In my app, I'd like to …

ios swift properties subclass class-extensions
How to use core data's add & remove (NSSet) accessor methods?

In this test Core Data project, I have a one to many relationship from "Customer" to "Products" and this relationship …

core-data subclass insertion nsset
Should I subclass the NSMutableArray class

I have an NSMutableArray object that I want to add custom methods to. I tried subclassing NSMutableArray but then I …

objective-c cocoa-touch methods nsmutablearray subclass
Adding custom methods to a subclassed NSManagedObject

I have a Core Data model where I have an entity A, which is an abstract. Entities B, C, and …

cocoa inheritance core-data subclass
Avoid specifying all arguments in a subclass

I have a class: class A(object): def __init__(self,a,b,c,d,e,f,g,...........,x,y,z) #…

python constructor arguments subclass
how to obtain all subclasses of a class in php

Is it possible to get all subclasses of given class in php?

php inheritance subclass
ES6 class super() with variadic arguments

In ES6, is there a way to call a parent constructor passing through variadic arguments, a la foo.apply(this, …

javascript ecmascript-6 subclass
Is there a way to create subclasses on-the-fly?

I'm creating a game in which I have a somewhat complex method for creating entities. When a level is loaded, …

python class singleton subclass subclassing