Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclass



At 7:01 PM -0500 6/14/03, Chris Hanson wrote:
2. The ability to declare methods protected or private

These are nonsensical in a true object-oriented language; since you can send any message to any object at any time, there is and can be no enforcement of protection.

Not to start a war here...

But why would it not be proper in a "true" OO lang for a class to be able to declare whether it wants to accept a message or not?

As an object, I might want to allow messages from some objects and reject messages from other objects.

mark

--
---------------------------------------------------------------------------
Mark F. Murphy, Director Software Development <mailto:email@hidden>
Tyrell Software Corp <http://www.tyrell.com>
---------------------------------------------------------------------------
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Subclass (From: Chris Hanson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.