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
Explain the advantages of inheritance.
What is abstraction in oop?
Why do we use polymorphism in oops?
What polymorphism means?
Advantage and disadvantage of routing in telecom sector
Why is polymorphism needed?
What is pure oop?
What is polymorphism in oop example?
How do you answer polymorphism?
What is for loop and its syntax?
What are functions in oop?
#include
write string class as your own class in java without using any built-in function
What is the important feature of inheritance?
Can private class be inherited?