On Sat, Jan 19, 2002 at 04:23:38AM +0000, padu wrote: > I am newbie at Perl. [snip] > Is it anyway possible to Extend the above program with > constructors for rectangle and circle and a > non-virtual function "move" to change the reference > point of any of these objects. > > Can anybody help me with it.. ---end quoted text---
Simple answer is "yes", however writing Perl OO is um... 1) Easier than writing OO in Java and 2) Harder than writing OO in Java For a start read: perldoc perlobj perldoc perlboot perldoc perltoot perldoc perltootc perldoc perlbot and for the hardcore: perldoc perltie An excellent book on the subject is "Object Oriented Perl" by Damien Conway. Without detracting from my fondness of Perl, it's not an OO language in as much that OO is immediately easy to do, and things like inheritance and polymorphism have to be handled. All the best. -- Frank Booth - Consultant Parasol Solutions Limited. (www.parasolsolutions.com) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
