Last post May 15, 2008 11:09 PM by Lee Dumond
May 15, 2008 01:30 PM|Annddrew|LINK
In the Poll module it seems to me the following method is implemented but never called:
Is that right? Thanks
May 15, 2008 11:09 PM|Lee Dumond|LINK
This is the instance version of the static bool VoteOption(int pollID, int optionID) method, which is in the same class.
You are correct in pointing out that this instance method isn't called in the code. But you will also notice that in this, as well as in several of the other modules, the author always creates both instance and static method versions of all Update and Delete
The static methods do the actual work; the instance methods merely call the static methods in turn. It's a common programming technique which allows flexibility in future application design or functionality upgrades.