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 |
why to use template classes in c++?
What is multidimensional array?
What is meant by multiple inheritance?
inheritence with example
Can abstract class have normal methods?
difference between structure and union.
What is difference between multiple inheritance and multilevel inheritance?
What is polymorphism programming?
What are the advantages of inheritance?
26 Answers IBS, TCS,
How do you use inheritance in unity?
What is polymorphism used for?
What is abstraction oop?