What is the use of static functions?

Answer Posted / khan

Static member functions give internal linkage. The function
declared as static is not visible outside the file in which
it is declared. It is not associated with "this" pointer and
it can be invoked using class name instead of depending on
individual object. It can access only static members of the
class.

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope operator in c++?

828


What is the difference between containment and delegation?

977


What do you mean by storage classes?

1160


What are the different types of polymorphism in c++?

853


Is c++ a programming language?

812


What is main function in c++ with example?

846


Why do we need c++?

792


What is the full form of ios?

762


Why is c++ is better than c?

719


Is java based off c++?

729


Describe Trees using C++ with an example.

857


Why would you use pointers in c++?

843


What is bubble sort c++?

785


Does c++ cost money?

771


how to access grid view row?

1999