Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: use of modules in special cases

by Dirk80 (Pilgrim)
on Dec 22, 2019 at 07:06 UTC ( [id://11110506]=note: print w/replies, xml ) Need Help??


in reply to use of modules in special cases

Sorry, by accident I wrote anonymous.

It's all object oriented in my case. Here an update for special case 1. I'm calling a class method of B. B has an abstract constructor. So it is not possible to create a B object.

Replies are listed 'Best First'.
Re^2: use of modules in special cases
by soonix (Canon) on Dec 22, 2019 at 12:46 UTC
    Would it be possible to have B1 or B2 inherit this class method, so that you can call it as a subclass method?
    Then you wouldn't need to use B
Re^2: use of modules in special cases
by LanX (Saint) on Dec 22, 2019 at 12:36 UTC
    > I'm calling a class method of B.

    How? Please show code.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found