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 |
diff between Abstract class Interfaces?
What are constructors in oop?
Which is the parameter that is added to every non-static member function when it is called?
what is the definition of incapsulation
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
write a program to find 2^n+1 ?
what is diff between .net 1.1 and .net 2.0
Precompilation ?
How is polymorphism achieved?
What is the purpose of polymorphism?
What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined
What is polymorphism what are the different types of polymorphism?