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...


Why static functions always uses static variables?

Answers were Sorted based on User's Feedback



Why static functions always uses static variables?..

Answer / george from psg

static function is constant to all object. In the same way
static variable is constant to all so we use static variable
in static function

Is This Answer Correct ?    9 Yes 1 No

Why static functions always uses static variables?..

Answer / som shekhar

If you take in the context of the class, static member
functions cannot be called by the ordinary objects because
when normal object calls the function then address of the
object is passed is collected by "this" pointer and static
member function don't have "this" pointer.

Is This Answer Correct ?    0 Yes 0 No

Why static functions always uses static variables?..

Answer / harsha

context,object are created in RAM. context is created
once.static methods implementaion , static varibles loads
into context only once.All those staic members avilable to
each other obviously.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More OOPS Interview Questions

what is an instance of a class

5 Answers  


write knight tour problem which is present in datastructure

0 Answers  


What is a linked list?

10 Answers   IBM, Neural Info,


WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.

4 Answers   HCL,


what is virtual destructor

7 Answers   L&T, TCS,


What is the highest level of cohesion?

0 Answers  


Get me an image implementation program.

0 Answers  


Program to check whether a word starts with a capital letter or not.

1 Answers   Infosys,


How compiler selects(internally) required overridden function in inheritance?

2 Answers   CSC, Infinite Computer Solutions,


why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??

1 Answers  


diff between Virtual mathod and abstract method?

1 Answers  


Can main method override?

0 Answers  


Categories