in reply to Re^4: OOP and derived classes
in thread OOP and derived classes

Is that possible in Java? What happens when the method needs to access an attribute that doesn't exist on the base class?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^6: OOP and derived classes
by Anonymous Monk on Feb 14, 2015 at 22:21 UTC
    can't happen. I'm asking since in Perl not constrained due to duck typing you can use and abuse, like pass a derived instance to a method expecting a base one