but it's looks like its optional in Perl?Yes.
what happens when the base class is not instantiated and I call a base class method which accesses some base class properties ,through a derived object ?If, say, the object in question is a hash, then base class will find undef instead of whatever it wanted to find, like with all other hashes.
will the method be called as a base class method or will it be called as a derived one (the first parameter sent to the method would be a base object or a derived one?The base class will get the whole thing, 100% of it. So, in Java's terms, the base method will get the derived object.
In reply to Re^3: OOP and derived classes
by Anonymous Monk
in thread OOP and derived classes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |