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 is the use of seekg in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
Which software is used for c++ programming?
Why is c++ still best?
Does dev c++ support c++ 11?
What is null pointer and void pointer and what is their use?
What is data types c++?
How do you find out if a linked-list has an end?
Difference between struct and class in terms of access modifier.
Mention the storage classes in c++.
Does c++ support multilevel and multiple inheritances?
Can union be self referenced?
Are c and c++ different?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?