what is difference between static and non-static variables
Answer Posted / daxini
Static :
A static variable is defined for the class itself and exists independently of any object of that class.
non-static:
a non static variable is defined for object of the class thus it is bound to an instance of its class
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Write a Program to find the largest of 4 no using macros.
What are maps in c++?
What is time h in c++?
Explain the concept of copy constructor?
Implement stack operations with pointers with appropriate exception checks.
Difference between struct and class in terms of access modifier.
What is virtual function? Explain with an example
Explain the difference between overloading and overriding?
What is the cout in c++?
What are destructors?
Is map ordered c++?
Can a Structure contain a Pointer to itself?
What is type of 'this' pointer? Explain when it is get created?
Is c++ a float?
What are the rules for naming an identifier?