Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Class::Methodmaker inheritance

by rkg (Hermit)
on Mar 08, 2004 at 21:20 UTC ( #334935=note: print w/replies, xml ) Need Help??


in reply to Class::Methodmaker inheritance

The (obvious?) solution works -- very cool! Thanks, all.
package Foo; use MakeMethods constructor => 'new', required => [qw(bar baz)], get_set =>[qw(bar baz)]; package BigFoo; use base 'Foo'; use MakeMethods get_set =>[qw(zonk zank)]; package main; use Data::Dumper; my $a = BigFoo->new(bar=>1, baz=>2, zonk=>3); print ref($a), "\n", $a->isa('Foo'), "\n"; print Dumper($a);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://334935]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-06-08 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (35 votes). Check out past polls.

    Notices?