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
What does catch(…) mean?
Refer to a name of class or function that is defined within a namespace?
Can we declare a base-class destructor as virtual?
What is else syntax in c++?
What is the error in the code below and how should it be corrected?
What is scope operator in c++?
Are strings immutable in c++?
Can we define a constructor as virtual in c++?
Explain how we implement exception handling in c++?
What are friend classes?
Can char be a number c++?
Can a program run without main in c++?
What happens when the extern "c" char func (char*,waste) executes?
What are the five basic elements of a c++ program?
Is java easier than c++?