Answer Posted / amit
Amit Srivastava:
What i think , static functions are used with the conditions
where there is no need to occupy RAM memory unnecessarily.
As ,other than Static functions are attached with the object
and ready to use memory space as and when a object of that
class is instantiated.But Static functions are having only
one address as they are independent of Objects.
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
What is data abstraction? How is it different from data encapsulation?
Which software is used for c++ programming?
why and when we can declar member fuction as a private in the class?
Explain rtti.
How does class accomplish data hiding in c++?
What are the advantages of using friend classes?
Is nan a c++?
How would you implement a substr() function that extracts a sub string from a given string?
Ask to write virtual base class code?
Explain the differences between private, public and protected and give examples.
What is c++ coding?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Write a Program to find the largest of 4 no using macros.
What is the need of a destructor?
How do you establish a has-a relationship?