Re: Private, Protected methods in Obj C?
Re: Private, Protected methods in Obj C?
- Subject: Re: Private, Protected methods in Obj C?
- From: Andy <email@hidden>
- Date: Wed, 03 Apr 2002 20:57:33 -0500
"Erik M. Buck" wrote:
>
>
It is also worth noting that a determined programmer can also get around C++
>
private virtual member function restrictions. Private virtual member
>
functions are still in the class's vTable and can still be called with the
>
correct index into the table. Systems like Microsoft's COM are quite
>
capable of calling member functions and the compiler can not stop them.
>
>
In Objective-C, "private" methods are hidden from users of the class. If
>
the user is determined to find out what the "private" method's selector is
>
and call it anyway, there is nothing that can be done. Determined
>
programmers can circumvent anything.
Heh. Indeed, even in Java if one is running with the byte code verifier
off (as one usually is unless one is running in an unsigned applet) you
could always hack the compiler to allow you to call private functions.
--
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
I think we finally found the killer app for Flash: animated stick men
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.