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

Pure Virtual Functions

by papidave (Pilgrim)
on Feb 06, 2009 at 21:41 UTC ( [id://742013]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Abstract class for consideration
    #   name() and doit() are a base class object methods.
    ...
    
       return(1);
    } # doit
    
  2. or download this
    # Test module derived from Foo.
    
    ...
              __PACKAGE__, $obj->name(), $obj->table_name();
       return( 1 );
    } # abc_func
    
  3. or download this
    # Test module
    
    ...
              __PACKAGE__, $class;
       return( 1 );
    } # base_func
    
  4. or download this
    # Test module
    
    ...
              __PACKAGE__, $obj->name(), $obj->table_name();
       return( 1 );
    } # xyz_func
    
  5. or download this
    #!/usr/bin/perl -w
    
    ...
    # calls of static methods
    XyzBase->base_func();
    Xyz->base_func();
    
  6. or download this
    Local function for Abc -- my name is Fred, my table is ABC_TABLE
    Local function for Xyz -- my name is Ethel, my table is XYZ_TABLE
    ...
    Table for XyzBase is unknown, database is Foobase
    Local function for XyzBase, called from XyzBase
    Local function for XyzBase, called from Xyz
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found