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 :: flush?

1 Answers  


What is c++ vb?

1 Answers  


What is the purpose of ios::basefield in the following statement?

1 Answers  


What is data structure in c++?

1 Answers  


when can we use copy constructor?

6 Answers   HP,


What is the use of pointer in c++ with example?

1 Answers  


Are vectors passed by reference c++?

1 Answers  


What is scope of a variable? (LOLZ)

2 Answers   CA, TCS,


What are virtual functions in c++?

1 Answers  


What is a node class?

1 Answers  


What is the difference between inline functions and macros?

5 Answers  


What is data hiding c++?

1 Answers  


Categories