Answer Posted / manu
Static member functions have external linkage. These
functions do not have this pointers. As a result,
They cannot access nonstatic class member data using
the member-selection operators (. or –>).
They cannot be declared as virtual.
They cannot have the same name as a nonstatic function
that has the same argument types.
They are useful as they donot have access to this pointer
and so they can be called even though the class is not
instantiated.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Is eclipse good for c++?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
Explain the difference between overloading and overriding?
Why is main function important?
What is the size of a vector?
What does it mean to declare a member variable as static?
What is a catch statement?
Specify different types of decision control statements?
What are the various access specifiers in c++?
What do you mean by persistent and non persistent objects?
Write a program to add three numbers in C++ utilizing classes.
What is data type in c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
Are iterators pointers?
Which operator cannot overload?