4 ms·
What I'm saying is that you can't do something like this in C++-derived OO languages class Test { Test( int count ) { if ( count >
by rchowe 16y ago
What I'm saying is that you can't do something like this in C++-derived OO languages
class Test
{
Test( int count ) {
if ( count > 5000 ) return new Implementation();
return new OtherImplementation();
}
}
you'd have to use a class method, whereas you can do that with the standard alloc/init in Objective-C.