in reply to Re: Re (tilly) 3: Inheriting object data
in thread Inheriting object data
An alternate approach is to use a has-a relationship. In that case Foo::Bar would not inherit from Foo, but would have a property that was an object of type Foo, and would have a login method like this:
sub login { my $self = shift; $self->{base_obj}->login(@_); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 5: Inheriting object data
by archon (Monk) on Feb 17, 2001 at 03:47 UTC | |
by geektron (Curate) on Feb 17, 2001 at 03:57 UTC | |
|
Re: Re (tilly) 5: Inheriting object data
by archon (Monk) on Feb 17, 2001 at 04:57 UTC | |
by chromatic (Archbishop) on Feb 17, 2001 at 06:07 UTC | |
by eg (Friar) on Feb 17, 2001 at 08:51 UTC | |
by archon (Monk) on Feb 17, 2001 at 09:57 UTC |