Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of static functions?

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


Please Help Members By Posting Answers For Below Questions

Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1081


Why ctype h is used in c++?

963


What is the difference between set and map in c++?

1136


When is the destructor called?

1037


How do you sort a sort function in c++ to sort in descending order?

998


What is the maximum combined length of command line arguments including the space between adjacent arguments?

1001


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

3676


Why c++ is the best language?

1071


Describe the syntax of single inheritance in C++?

1080


What is size_type?

1058


Explain what are mutator methods in c++?

1119


What is an adaptor class in c++?

1197


What is the keyword auto for?

1040


What is meant by entry controlled loop? What all C++ loops are exit controlled?

1091


What is a lambda function c++?

1116