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

What does it mean to declare a destructor as static?

625


What is pointer to member?

601


What is the difference between strcpy() and strncpy()?

612


Write about c++ storage classes?

755


Write about all the implicit member functions of a class?

600






When is the copy constructor called?

635


what is VOID?

635


What is the most common mistake on c++ and oo projects?

525


What is ios flag in c++?

687


What is the basic of c++?

604


Is c++ platform dependent?

635


What does new in c++ do?

568


What is fflush c++?

580


Write my own zero-argument manipulator that should work same as hex?

589


C is to C++ as 1 is to a) What the heck b) 2 c) 10

641