What are the static members and static member functions?



What are the static members and static member functions?..

Answer / hrpynux@gmail.com

A static member function can only access static data member, other static member functions and any other functions from outside the class. Static member functions have a class scope and they do not have access to the this pointer of the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are friend classes?

0 Answers  


How can I disable the "echo" feature?

0 Answers  


What is a pointer with example?

0 Answers  


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

0 Answers  


can anybody please tell me how to write a program in c++,without using semicolon(;)

6 Answers   NIIT,






What is pointer -to-members in C++? Give their syntax?

0 Answers   Honeywell, Zomato,


How do I start a c++ project?

0 Answers  


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

0 Answers  


If all is successful, what should main return a) 0 b) 1 c) void

0 Answers  


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

0 Answers  


What is the difference between a pointer and a link in c ++?

0 Answers  


What is the array and initializing arrays in c++?

0 Answers  


Categories