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

Is facebook written in c++?

956


What is class syntax c++?

1103


What is microsoft c++ redistributable?

1040


What is a stack? How it can be implemented?

1133


How can a called function determine the number of arguments that have been passed to it?

1091


Explain the auto storage classes in c++.

1058


What are signs of manipulation?

1028


Can comments be longer than one line?

1027


Why is c++ not purely object oriented?

971


Refer to a name of class or function that is defined within a namespace?

1060


Define a nested class.

1033


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

1052


What operator is used to access a struct through a pointer a) >> b) -> c) *

1063


What are references in c++?

1099


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1022