Top "Static-functions" questions

Static member functions error; How to properly write the signature?

I am getting an error when trying to compile my code in g++ using the current signature: cannot declare member …

c++ static-members method-signature static-functions
PHP constructors and static functions

I'm a bit confused on how constructors work in PHP. I have a class with a constructor which gets called …

php constructor static-functions
Where would you use a friend function vs. a static member function?

We make a non-member function a friend of a class when we want it to access that class's private members. …

c++ friend-function static-functions
Does a static function need the static keyword for the prototype in C?

My C programming book says that when I want to create a static function, I need to put the static …

c static-functions
Static Function Help C++

I can't get past this issue I am having. Here's a simple example: class x { public: void function(void); private: …

c++ static-functions
How to obtain static member variables in MATLAB classes?

Is there a way to define static member variables in MATLAB classes? This doesn't work: classdef A properties ( Static ) m = 0; …

matlab class oop static-functions matlab-class
Static Virtual functions in c++

I have a base class and a derived one and I want to change base functions while keeping them static …

c++ inheritance c++builder virtual-inheritance static-functions
Is it possible to specify a static function in a Kotlin interface?

I want to do something like this: interface Serializable<FromType, ToType> { fun serialize(): ToType companion object { abstract fun …

interface static-methods abstract kotlin static-functions