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

3- Write a program to find larger and smaller of the two numbers.

4 Answers   Luminous,


Why is the function main() special?

0 Answers  


Explain how overloading takes place in c++?

0 Answers  


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

0 Answers  


What does n mean in c++?

0 Answers  






Is c++ slower than c?

0 Answers  


What is virtual table?

0 Answers  


Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?

1 Answers  


When does a 'this' pointer get created?

0 Answers  


How many keywords are used in c++?

0 Answers  


What are c++ variables?

0 Answers  


Can I learn c++ without learning c?

0 Answers  


Categories