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

What is prototype in c++ with example?

1141


Write a program using display() function which takes two arguments.

1068


Define namespace in c++?

1043


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?

1284


what is c++

2381


Difference between class and structure.

1159


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1205


What are the defining traits of an object-oriented language?

1199


What c++ is used for?

1072


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1066


What is c++ redistributable?

1225


What does it mean to declare a member variable as static?

1054


What is the use of bit fields in structure declaration?

981


What are the differences between new and malloc?

1120


Write a program to add three numbers in C++ utilizing classes.

1111