garymgordon
Programmer
If anyone can help, I have a series of questions that I would like to request some clarification onvregarding OOP in Perl.
I'll spit them out one at a time to try and make it easier to answer and easier for me to try and understand.
STATEMENT: I am reading that OBJECTS are defined within modules. A module can be identified as defining an object by the inclusion of a constructor. A constructor is a special subroutine that defines a data type to maintain the attributes of a class and returns a reference to this variable.
QUESTION:
Are objects ONLY defined within modules? If not, where and how are they 'defined'?
Can you explain the above STATEMENT on a level that a beginner can understand it?
Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
I'll spit them out one at a time to try and make it easier to answer and easier for me to try and understand.
STATEMENT: I am reading that OBJECTS are defined within modules. A module can be identified as defining an object by the inclusion of a constructor. A constructor is a special subroutine that defines a data type to maintain the attributes of a class and returns a reference to this variable.
QUESTION:
Are objects ONLY defined within modules? If not, where and how are they 'defined'?
Can you explain the above STATEMENT on a level that a beginner can understand it?
Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer