Re: Private, Protected methods in Obj C?
Re: Private, Protected methods in Obj C?
- Subject: Re: Private, Protected methods in Obj C?
- From: "Erik M. Buck" <email@hidden>
- Date: Wed, 3 Apr 2002 16:03:36 -0600
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.
----- Original Message -----
From: <email@hidden>
To: <email@hidden>
Sent: Wednesday, April 03, 2002 3:01 PM
Subject: Re: Private, Protected methods in Obj C?
>
In a message dated 4/3/02 12:14:24 PM, email@hidden writes:
>
>
>This is close to private methods in C++. Not not sure about an
>
>equivalent for protected methods
>
>
I believe that the methods are still public, but if they aren't visible
>
publicly, then nobody knows to use them. This means that they will still
be
>
inherited, and so they are actually similar to protected methods. Private
>
methods can't really be achieved, though they are generally unnecessary.
>
_______________________________________________
>
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.
_______________________________________________
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.