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.