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
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is the use of endl?
How is c++ used in the real world?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What is the best it certification?
What is an accessor in c++?
Will the following program execute?
Can you please explain the difference between overloading and overriding?
What is a string example?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
Should I learn c or c++ or c#?
What is a linked list in c++?
What is #include c++?
What is the difference between a "copy constructor" and an "assignment operator" in C++?