Just another Perl shrine | |
PerlMonks |
Re: OO Baggageby extremely (Priest) |
on Jan 16, 2001 at 03:43 UTC ( [id://52108]=note: print w/replies, xml ) | Need Help?? |
In short, an object is nothing more than a structure of data
that has a "name". The compiler uses that name to find
a set of subroutines, methods, that are assured of working
with that structure. So, no, the methods aren't bootstrapped
into memory once for each object, they are just subroutines
that perl knows work well with a data structure.
Honestly, all the jargon makes it a lot more mysterious than it really is but you need the jargon to talk about the subtleties of it all.
HTH. There is a lot more to it but that is a sorta ok mapping to the world you are likely to have been working in. Others, help me out if I've "translated" that in some evil way that will only hurt him later, please. --
In Section
Seekers of Perl Wisdom
|
|