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 is the best way to declare and define global variables?

0 Answers  


Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast

2 Answers   Quark,


Does c++ have arraylist?

0 Answers  


What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };

2 Answers  


Explain calling an object's member function(declared virtual)from its constructor?

1 Answers  






What does int * mean in c++?

0 Answers  


If you don’t declare a return value, what type of return value is assumed?

0 Answers  


What is implicit conversion/coercion in c++?

1 Answers  


How would perform Pattern Matching in C++?

0 Answers   Genpact,


Define whitespace in C++.

0 Answers   HCL,


Why was c++ made?

0 Answers  


what is importance of data sturture in a programming language?

22 Answers   L&T, TCS, Wipro,


Categories