- Code: Select all • Expand view
class TestClass abstract
{
static TestClass Create()
{
return new('TestClass'); // Error: Cannot instantiate abstract class TestClass
}
}
While there's no doubt that this behavior is certainly intended, there is also an inconsistency: abstract classes can still be instantiated with the "summon" console command, provided that they inherit from Actor. This should probably not be allowed.
(As a side note, I wish there were real abstract methods in ZScript...)