What is the use of static functions?

Answer Posted / sumanta pattanayak

static function is used to call static variable or class
variable...rather than that without creating the class
object we can access the static function by
classname.staticfunctionname.....THIS cannot be used inside
static function.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is atoi defined?

772


Explain the difference between overloading and overriding?

835


Explain what are the sizes and ranges of the basic c++ data types?

848


Is string data type in c++?

778


Is it possible for a member function to delete the pointer, named this?

806






Why is c++ is better than c?

693


What is the fastest c++ compiler?

751


What are static type checking?

796


How does c++ structure differ from c++ class?

800


What is polymorphism & list its types in c++?

793


Is eclipse good for c++?

757


What are the advantages of using a pointer?

786


Is it possible to get the source code back from binary file?

951


Can a program run without main function?

859


What is class syntax c++?

825