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

How are virtual functions implemented in c++?

1071


Explain the virtual inheritance in c++.

1069


How do you establish a has-a relationship?

1113


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

1081


Define anonymous class.

1078


What is the use of volatile variable?

1087


How do you clear a map in c++?

1127


When do we use copy constructors?

1084


What is the difference between prefix and postfix versions of operator++()?

1083


What is class invariant in c++?

1235


What is a far pointer? where we use it?

1077


When should we use multiple inheritance?

1049


What are the two types of polymorphism?

1143


How do you establish an is-a relationship?

1159


which operator is used for performing an exponential operation a) > b) ^ c) none

1064