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
Does c++ have foreach?
Can we get the value of ios format flags?
Difference between class and structure.
What is meant by forward referencing and when should it be used?
Is it possible for the objects to read and write themselves?
What is the use of endl?
What do you mean by vtable and vptr in c++?
What are the basics of local (auto) objects?
What are different types of loops in c++?
What is the full form of dos?
How did c++ start?
Do you need a main function in c++?
What does it mean to declare a member function as static?
What is the difference between while and do while loop? Explain with examples.
What are friend functions in C++?