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

Explain the use of this pointer?

644


Is python better than c++?

596


Define macro.

600


Differentiate between a constructor and a destructor in c++.

575


Write a program in C++ for Fibonacci series

669






Which programming language should I learn first?

583


Can we use this pointer in a class specific, operator-overloading function for new operator?

623


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

1589


Do the parentheses after the type name make a difference with new?

657


How can I improve my c++ skills?

571


What are function prototypes?

654


What is while loops?

626


Is c++ still being used?

570


Define copy constructor.

626


Why struct is used in c++?

631