I want to create an instance of a subclass from inside a static superclass method. Here is an example:
class Base
{
public static function createSubclassInstance()
{
//What do I do here?
return new this.getSubclassType();
}
}
class Sub extends Base
{
}
I want to create a new Sub instance by calling:
var s:Sub = Sub.createSubclassInstance();
Subinstance, why not just instantiate it like you would normally?