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 are the advantages of using typedef in a program?
When to use “const” reference arguments in a function?
What are pointer-to-members? Explain.
How do you remove an element from a set in c++?
What is prototype for that c string function?
Is linux written in c or c++?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is a dll entry point?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
Why is null pointer used?
What is #include sstream?
How do I exit turbo c++?
What do you understand by pure virtual function? Write about its use?
What is the use of bit fields in structure declaration?
Is arr and &arr are same expression for an array?