Answer Posted / anh vu
A static function member can be used to provide utility
functions to a class. For example, with a class representing
calendar dates, a function that tells whether a given year
is a leap year might best be represented as a static
function (DateTime.IsLeapYear). The function is related to
the operation of the class but doesn't operate on particular
object instances (actual calendar dates) of the class.
Is This Answer Correct ? | 15 Yes | 8 No |
Post New Answer View All Answers
What is a stack c++?
What is public, protected, private in c++?
Why null pointer is used?
Why Pointers are not used in C++?
What is the use of :: operator in c++?
What is helper in c++?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
what are the iterator and generic algorithms.
We use library functions in the program, in what form they are provided to the program?
Difference between struct and class in terms of access modifier.
Explain the difference between class and struct in c++?
Is c++ a high level language?
Explain all the C++ concepts using examples.
Specify some guidelines that should be followed while overloading operators?
Comment on c++ standard exceptions?