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


When the design recommends static functions?

Answers were Sorted based on User's Feedback



When the design recommends static functions?..

Answer / manu

The design reccommends static functions when you need to
call the function even when the class is not instantiated.

Is This Answer Correct ?    5 Yes 0 No

When the design recommends static functions?..

Answer / aruna kumar samal

When you want to use the function inside the program , not
outside then dsign recomend to do so. This does not have a
this pointer.static function maynot be virtual.there will
not be same version of static and non static function.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C++ General Interview Questions

What is std :: endl?

0 Answers  


What is scope of a variable? (LOLZ)

2 Answers   CA, TCS,


What is c++ array?

0 Answers  


Should you pass exceptions by value or by reference?

0 Answers  


What do you mean by static variables?

0 Answers  


How do you allocate and deallocate memory in C++?

1 Answers  


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

0 Answers  


Explain how to initialize a const member data.

0 Answers  


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

0 Answers  


What is virtual base class uses?

0 Answers  


What are advantages and disadvantages of Design patterns?

7 Answers   IBM, Vodafone,


class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData

2 Answers   Quark,


Categories