Top "Static-methods" questions

Methods that neither require an instance of the class nor can they implicitly access the data (or this, self, Me, etc.

Class with single method -- best approach?

Say I have a class that's meant to perform a single function. After performing the function, it can be destroyed. …

c# java oop static-methods
Getting the name of a child class in the parent class (static context)

I'm building an ORM library with reuse and simplicity in mind; everything goes fine except that I got stuck by …

php inheritance static-methods
Should private helper methods be static if they can be static

Let's say I have a class designed to be instantiated. I have several private "helper" methods inside the class that …

java static methods static-methods
Static methods in PHP

Why in PHP you can access static method via instance of some class but not only via type name? UPDATE: …

php static-methods
Namespace + functions versus static methods on a class

Let's say I have, or am going to write, a set of related functions. Let's say they're math-related. Organizationally, should …

c++ namespaces static-methods
.NET: Determine the type of “this” class in its static method

In a non-static method I could use this.GetType() and it would return the Type. How can I get the …

c# .net types static-methods
Using $this inside a static function fails

I have this method that I want to use $this in but all I get is: Fatal error: Using $this …

php oop this static-methods
Method can be made static, but should it?

Resharper likes to point out multiple functions per asp.net page that could be made static. Does it help me …

c# .net refactoring resharper static-methods
Can we have a static virtual functions? If not, then WHY?

Possible Duplicate: C++ static virtual members? Can we have a static virtual functions? If not, then WHY? class X { public: …

c++ static-methods virtual-functions
Static function declared but not defined in C++

I'm getting an error from the following code using C++. Main.cpp #include "file.h" int main() { int k = GetInteger(); …

c++ static-methods