what is static function

Answer Posted / aavesh yadav

Static functions are functions which can access only static
variables and local variables.It can be called by class
name bcoz it is specific for a class in which it is
defined,not for any specific object of that class.It can
not be inherited also.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a template in c++?

633


Can I learn c++ as my first language?

601


What can c++ be used for?

578


What is the benefit of encapsulation?

592


When should I use unitbuf flag?

586






I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

605


Explain the static storage classes in c++.

701


What is a literal in c++?

565


What are virtual functions in c++?

684


What is cin clear () in c++?

610


Differentiate between a copy constructor and an overloaded assignment operator.

638


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

630


What is the full form of c++?

613


Why is polymorphism useful?

561


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

1995