Re: [PW-dev] Static methods - was Widget factory
Status: Alpha
Brought to you by:
spadkins
From: James G S. <JG...@TA...> - 2001-06-11 22:05:42
|
"Jay Lawrence" <Ja...@La...> wrote: >James and Stephen, > >Could you please expand on what you mean by static methods? These would be methods that are not tied to an instance -- the `new' method (basically, any constructor) is an example of a usually static method. Any method that requires an instance of an object class is not a static method. Perl blurs the line between static and non-static methods. C++ is very explicit and requires the `static' keyword before the function declaration. The static methods do not have an object to get any information from, so any configuration information they get would have to either come from the function arguments or from globals. -- James Smith <JG...@TA...>, 979-862-3725 Texas A&M CIS Operating Systems Group, Unix |