in reply to How can I add private data/methods in parent class?

I am trying to learn a OO programming in perl. I have writtten following code to learn inheritance.
By coincidence, this is exactly the same code as in merlyn's column, you magnificent devil, you!

As for private methods in Perl, read this thread.

  • Comment on Re: How can I add private data/methods in parent class?

Replies are listed 'Best First'.
Re^2: How can I add private data/methods in parent class?
by pijush (Scribe) on Jun 22, 2004 at 06:23 UTC
    As I mentioned that I am just learning how to write OO programe, so I have used the code present in the documentation and try to add my code to explore OO features which are present in other language (such as C++) and how can I implement in Perl?