Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: OO - best way to have protected methods

by gargle (Chaplain)
on Aug 17, 2005 at 19:36 UTC ( [id://484554]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Base;
    
    ...
    }
    
    1;
    
  2. or download this
    package Inherit;
    
    ...
    }
    
    1;
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    # access to NOTSOSECRET by means of a protected method
    $inherit->inheritNotSoSecret("notsosecret");
    print $inherit->inheritNotSoSecret . "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-16 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found