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 static function and static class?

Answer Posted / brainless

If compilers don't check your pointers strictly,
you can also write code as below,

class A
{
//some static function code here
//never access non-static attributes here
static void callMe() {}
};

int main()
{
A * inst = NULL;
(*inst).callMe();
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Declare a class vehicle and make it an abstract data type.

966


Define macro.

1082


Is multimap sorted c++?

1003


What do you mean by delegate? Can a user retain delegates?

943


How can you tell what shell you are running on unix system?

1111


How did c++ get its name?

1030


What does ctime() do?

1124


What is auto type c++?

1122


What are features of c++?

1173


Can a program run without main?

1238


Why do we need constructors in c++?

1108


What is c++ similar to?

1184


What are proxy objects in c++?

1180


Write a function to find the nth item from the end of a linked list in a single pass.

978


How do you compile the source code with your compiler?

1056