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

Re: OO Pattern Container x Elements and Method Chaining (House, Person, Inhabitant)

by LanX (Sage)
on Oct 08, 2021 at 16:51 UTC ( #11137360=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Container      = SharedHouse
    Element        = Person
    ->do_something = ->pay_rent
    
  2. or download this
    my $cont = SharedHouse->new('Prag');
    my $elem = Person->new('Egon');
    ...
    
    # method chaining
    $cont->get_elem('Egon')->pay_rent();
    
  3. or download this
    $elem1 = $cont1->get_elem('Egon');
    $elem2 = $cont2->get_elem('Egon');
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-01-28 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (72 votes). Check out past polls.

    Notices?