difference between static and non-static variables?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sujitha.r
Static:
*No instance is required.
*Automatic Invocation.
Non-Static:
*Instance is required.
Is This Answer Correct ? | 0 Yes | 0 No |
What is Method overloading?
What is R T T I ?
what is new operator in c++
what is a binary overloading
What are objects in oop?
difference between overloading and overridding
What is encapsulation selenium?
what is different between oops and c++
State what is encapsulation and friend function?
what is the use of mutable key word
What do you mean by Encapsulation?
what is multithreading in c++ , what is difference between multithreading and singlethreading.