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 are the 3 pillars of oop?
What is constructor overloading in oop?
What normal C constructs work differently in C++?
what is costructor?
define oops with class and object
Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?
What is this pointer in oop?
How do you answer polymorphism?
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
write string class as your own class in java without using any built-in function
what type of questions
What is pointer in oop?