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 |
DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED PROGRAMING.
what is the new version of oops
The expansion of GNU
Describe what an Interface is and how it?s different from a Class.
C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
How do you achieve polymorphism?
how can we design a magic square in c++?or suggest me the basic idea of it.
What is difference between oop and pop?
write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation
1 Answers College School Exams Tests, HCL, IBM, TCS,
In which cases you use override and new base?
can we create and enter the data & hide files using programmes ?