Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Object Oriented Orientation

by chromatic (Archbishop)
on Aug 03, 2011 at 20:06 UTC ( [id://918375]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Object Oriented Orientation
in thread Object Oriented Orientation

Classes, interfaces, overridden methods, public/private/static/protected members, inheritance, polymorphism, encapsulation, etc.

Only two of those things are important to OOP, and arguably only one is vital.

Replies are listed 'Best First'.
Re^5: Object Oriented Orientation
by jdrago999 (Pilgrim) on Aug 05, 2011 at 21:39 UTC

    Only two of those things are important to OOP, and arguably only one is vital.

    I suppose you are referring to polymorphism and encapsulation.

    Everything else in the list are simply common ways to implement those two aspects of OO. You are absolutely correct.

      You are absolutely correct.

      I'm glad someone else agrees!

      That's why I question the recommendation to use Java to study OO. Certainly you can write good OO code in Java (I've seen it; may even have written it once or twice), but the language goes out of its way not to encourage that.

      Some sort of combination of Smalltalk and CLOS would fare much better, but Perl 6 is rather impractical for many uses and there's no "Learn OO with Moose" guide yet.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://918375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-29 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found