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 use of overloading?
What are properties in oop?
What is overriding vs overloading?
Can static class have constructor?
Why is abstraction needed?
c++ program to swap the objects of two different classes
Can you explain polymorphism?
What is difference between pop and oop?
Which is better struts or spring?
What is the real time example of encapsulation?
what is the drawback of classical methods in oops?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is the oops and benefits of oops programming?
How do you achieve polymorphism?
What is oops concept with example?