Re: OOP Clarification
Re: OOP Clarification
- Subject: Re: OOP Clarification
- From: Andreas Monitzer <email@hidden>
- Date: Fri, 4 Jan 2002 18:13:59 +0100
On Friday, January 4, 2002, at 05:25 , Marco Scheurer wrote:
I meant overriding. Can you redefine a static method in a subclass and
invoke the base class implementation?
@implementation Animal
+ (void) doSomething
{
//...
}
@end
@implementation Tiger : Animal
+ (void) doSomething
{
//...
[super doSomething];
}
@end
That's not possible even in Java, and that was the showstopper for my
own EOF/Java-implementation. I don't think it's possible in C++.
That's my problem with ObjC: I'm always thinking about how I'd do that
in ObjC, so I can't use the limited Java any more. In C++, I ended up
reconstructing some Cocoa-parts (the retain/release-concept).
andy