|P is for Practical|
how do you call this? $x->bar();by dada (Chaplain)
|on Mar 15, 2004 at 11:55 UTC||Need Help??|
dada has asked for the wisdom of the Perl Monks concerning the following question:
I have a little doubt about OO terminology. we all know that we can do:
and we known that bar(), in this case, is being called as a "class method" (or "static method") instead of as an "instance method".
but how do you call $x? it is just a string, which represents a package name. so it doesn't seems a "class reference". maybe a "symbolic class reference"?
I came across this trying to implement an object hierarchy in which I can have several "backend" classes and a "frontend" object. now, I don't need to instantiate backend objects, I only need to know which backend the main object refers to. so I thought something like this:
King of Laziness, Wizard of Impatience, Lord of Hubris