In Java when you create an instance of a derived class it also includes an instance of the base class,so when you say child->base_method it calls the base method but as an base instance.
In Perl when you create a new derived class should you explicitly create a base instance inside the derived class constructor? I can't see any real connection between derived and base classes, I think I'm not getting OOP in Perl
In reply to OOP and derived classes by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |