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
Explain how overloading takes place in c++?
What are the benefits of operator overloading?
Name four predefined macros.
Why c++ is better than c language?
What is c++ w3school?
What is the keyword auto for?
Describe the advantage of an external iterator.
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
What is private inheritance?
Is it possible for a member function to delete the pointer, named this?
What is an associative container in c++?
Where must the declaration of a friend function appear?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
How do pointers work?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?