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

Explain selection sorting. Also write an example.

0 Answers  


What is lambda expression c++?

0 Answers  


What are move semantics?

0 Answers  


Are there any new intrinsic (built-in) data types?

1 Answers  


What does flush do c++?

0 Answers  


class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;

4 Answers   Manhattan,


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

0 Answers  


What is the meaning of string in c++?

0 Answers  


How can I improve my c++ skills?

0 Answers  


What is virtual destructor ans explain its use?

0 Answers  


Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.

4 Answers   Quark,


What does ctime() do?

0 Answers  


Categories