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 virtual destructor? Explain the use of it?
Is swift faster than go?
Describe the advantage of an external iterator.
How a new element can be added or pushed in a stack?
What are the uses of pointers?
What does int * mean in c++?
What is the operator in c++?
What is implicit conversion/coercion in c++?
Define 'std'.
What is static class data?
What is a binary file? List the merits and demerits of the binary file usagein C++.
What is lambda in c++?
What happens when the extern "c" char func (char*,waste) executes?
What is null and void pointer?
What is the difference between a definition and a declaration?