difference between static and non-static variables?
Answer Posted / santosh mundhe
Static:1)Memory allocated before creation of object.
2)Gets memory on Global segment.
3)Object can't get copy of static variable, each
object shears static variable from global segment.
4)Static variables are not part ob object.
Non-static:
1)Gets memory on satck segment.
2)Object gets copy of non static variable.
3)Non static variables are part of object.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what is different between oops and c++
What is balance factor?
Whats oop mean?
Can we create object of abstract class?
How do you define a class in oop?
What is use of overloading?
What are the 3 principles of oop?
What is oops with example?
What is polymorphism give a real life example?
What is the full form of oops?
#include
When not to use object oriented programming?
What is abstraction in oops?
What does and I oop mean?
What is coupling in oop?