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

Explain how overloading takes place in c++?

1098


What are the benefits of operator overloading?

1272


Name four predefined macros.

1105


Why c++ is better than c language?

1072


What is c++ w3school?

1159


What is the keyword auto for?

1090


Describe the advantage of an external iterator.

1088


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

1022


What is private inheritance?

1146


Is it possible for a member function to delete the pointer, named this?

1245


What is an associative container in c++?

1109


Where must the declaration of a friend function appear?

1021


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

1064


How do pointers work?

1253


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1138