If I have a super class with a convenience constructor as follows (using ARC):
+(id)classA {
ClassA *foo = [[ClassA alloc] init];
return foo;
}
If I then subclass ClassA, with a class named ClassB, and I want to override the convenience constructor, is the following correct:
+(id)classB {
ClassB *foo = [ClassA classA];
return foo;
}
(Assume that I cannot call alloc and init on ClassB).
Thanks!