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 the benefit of oop?
What is difference between abstraction and encapsulation?
Which language is not a true object oriented programming language?
2. Give the different notations for the class.\
Why is oop useful?
What are the 5 oop principles?
What is this pointer in oop?
What are the benefits of oop?
What polymorphism means?
What are the benefits of polymorphism?
What is abstraction oop?
What makes a language oop?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Why do while loop is used?
What is encapsulation example?