in reply to Separation of interface and implementation

This is discussed in section 6.2.5 ("Implementing abstract methods") of TheDamian's classic book, Object Oriented Perl. The technique he outlines is simply to define the method normally and ensure its code throws a suitable exception. If it gets too tedious to do this manually, he presents a utility method to do it.

Given the number of questions you ask and your obvious love of Perl, I'm sure you'll get many hours of enjoyment from this wonderful book. ;-) And it has an excellent appendix comparing Perl with Java (and C++, Smalltalk, and Eiffel) feature-by-feature.

  • Comment on Re: Separation of interface and implementation

Replies are listed 'Best First'.
Re^2: Separation of interface and implementation
by johnnywang (Priest) on Dec 20, 2004 at 18:52 UTC
    Thanks, I do have the book, and am in the process of reading it, but I always found it helpful to re-organize any book in my own mind, and seek comments/viewpoints from others. PM is the perfect place for anything perl.