What are the static members and static member functions?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is overriding?

799


What are separators in c++?

821


What is polymorphism & list its types in c++?

804


Is java a c++?

767


What is c++ 11 and c++ 14?

818


What happens if a pointer is deleted twice?

1027


What are the various arithmetic operators in c++?

803


How important is c++?

710


Explain virtual class and friend class.

798


State the difference between pre and post increment/decrement operations.

820


What are the rules about using an underscore in a c++ identifier?

831


What gives the current position of the put pointer?

754


daily Routine of father

1139


What are vectors used for in c++?

804


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

813