0
What is static variable and static function..how they are differ from normal variable and function?
2 Antworten
+ 3
static variables and functions do not need an instance of their class in order to be called or modified
0
Static make function global if you make static method(function in class) you dont need to make instance of class(object) so:
class funk
{
static int Function() ;
int otherFunction() ;
} ;
Int main()
{
funk object;
object.otherFunction() ;
Function(); //calling not need to use object
}
like hinanawi say :-)