Pros and Cons of Static Methods
From: Axehelm (axehelm_at_mchsi.com)
Date: 05/27/04
- Next message: Mark R Rivet: "error, can't find class java4cpp/basic/FirstProgram"
- Previous message: Gregory Weston: "Re: Why would this not work?"
- Next in thread: perry anderson: "Re: Pros and Cons of Static Methods"
- Reply: perry anderson: "Re: Pros and Cons of Static Methods"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 May 2004 22:18:18 GMT
Okay, I'm in a debate over whether or not static methods are a good idea in
a general domain class.
I'm personally not a fan of static methods but we seem to be using them to
load an object. For example if you have an Employee class rather then
instantiating an instance you call a static method 'GetEmployees' and it
returns a List of Employee objects.
I'm looking for what other people are doing and if you feel this is a good
or bad idea.
Thanks
- Next message: Mark R Rivet: "error, can't find class java4cpp/basic/FirstProgram"
- Previous message: Gregory Weston: "Re: Why would this not work?"
- Next in thread: perry anderson: "Re: Pros and Cons of Static Methods"
- Reply: perry anderson: "Re: Pros and Cons of Static Methods"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|