![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Re: OO - problem with inheritanceby uwevoelker (Pilgrim) |
on Jan 14, 2002 at 20:30 UTC ( #138602=note: print w/replies, xml ) | Need Help?? |
Hello Ilya, thank you for your fast answer. Did I got you right, that when I want to change other configuration parameters like this which is taken from my String class, I need to override your sub parameter_config in this way? But I also need the other parameters from base class (like min => 0 and valid => 0 in this case). Or could I do something like this: My classes not only inherit from base_class.pm. There are also datatypes that inherit from other datatypes. Such as Text inherits from String (but no direct base_class) and PrimaryKey inherits from Integer. Is such inheritance with one of this configuration methods combineable? My goal is, that I can add new parameters only in base_class (let's say has_double_letters or max_number / min_number) and all the datatypes need only to "activate" this new parameters via the ->valid_parameter(qw(mandatory max_number)) call. Thanks, Uwe
In Section
Seekers of Perl Wisdom
|
|