Answer Posted / anthony michael
Static function and static variable does not below to single
instance of a class.
To access static functions we don't need instance of a class
instead it can be accessed using the class name followed by
::operator as:
[class_name::static_function() ]
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Explain about vectors in c ++?
What is the difference between multiple and multilevel inheritance in c++?
Explain the differences between private, public and protected and give examples.
What is the use of lambda in c++?
How can you link a c program with a c function?
What is long in c++?
What is operators in c++?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Difference between strdup and strcpy?
Explain the uses of static class data?
What is c++ map?
Why was c++ created?
What is new in c++?
Does improper inheritance have a potential to wreck a project?
What is implicit conversion/coercion in c++?