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 prototype in c++ with example?
Write a program using display() function which takes two arguments.
Define namespace in c++?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
what is c++
Difference between class and structure.
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What are the defining traits of an object-oriented language?
What c++ is used for?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What is c++ redistributable?
What does it mean to declare a member variable as static?
What is the use of bit fields in structure declaration?
What are the differences between new and malloc?
Write a program to add three numbers in C++ utilizing classes.