On Mon, Dec 30, 2013 at 11:30 AM, Cedric Greevey <cgree...@gmail.com> wrote:
> On Mon, Dec 30, 2013 at 12:59 PM, Massimiliano Tomassoli
>> A class must support encapsulation, inheritance and polymorphism. If it
>> doesn't, then it isn't a class. The same way, a method is a function that
>> belongs to a class and can be public, private or protected. If a function is
>> external to an object (i.e. it can't be made private or protected) than it
>> isn't a method.
>
> I'd submit that your definition is too narrow, since it excludes quite
> possibly *the* most archetypal of object oriented languages. I speak, of
> course, of Smalltalk, which the last time I checked had classes whose fields
> were automatically private and methods automatically public

Massimiliano's definition excludes several other OOP languages... :)
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to