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
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Why ctype h is used in c++?
What is the difference between set and map in c++?
When is the destructor called?
How do you sort a sort function in c++ to sort in descending order?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Why c++ is the best language?
Describe the syntax of single inheritance in C++?
What is size_type?
Explain what are mutator methods in c++?
What is an adaptor class in c++?
What is the keyword auto for?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is a lambda function c++?