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 information can an exception contain?

921


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

771


What is a string example?

805


Define basic type of variable used for a different condition in C++?

887


What is else syntax in c++?

873


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

2423


How can I disable the "echo" feature?

853


What is helper in c++?

872


Is it possible to provide special behavior for one instance of a template but not for other instances?

849


Is c++ vector a linked list?

787


How to tokenize a string in c++?

812


Where can I run c++ program?

833


What do you mean by delegate? Can a user retain delegates?

738


How can I learn c++ easily?

853


What is constructor c++?

890