what is static function

Answer Posted / aavesh yadav

Static functions are functions which can access only static
variables and local variables.It can be called by class
name bcoz it is specific for a class in which it is
defined,not for any specific object of that class.It can
not be inherited also.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which software is used for c++ programming?

620


What is wrapper class in c++?

631


What does it mean to declare a destructor as static?

629


Does dev c++ support c++ 11?

556


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

620






What is the use of endl in c++ give an example?

618


What is the most useful programming language?

608


What is a manipulative person?

544


Describe the setting up of my member functions to avoid overriding by the derived class?

613


What is a c++ vector?

595


What is c++ programming language?

582


Why can templates only be implemented in the header file?

659


What is the error in the code below and how should it be corrected?

311


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

614


How we can differentiate between a pre and post increment operators during overloading?

600