what is difference between static and non-static variables
Answer Posted / daxini
Static :
A static variable is defined for the class itself and exists independently of any object of that class.
non-static:
a non static variable is defined for object of the class thus it is bound to an instance of its class
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is the main purpose of c++?
What are maps in c++?
Define copy constructor.
What is == in programming?
What is the main use of c++?
How to demonstrate the use of a variable?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
What is a type library?
Who was the creator of c++?
What is the difference between passing by reference and passing a reference?
Should I learn c or c++ first?
Can non-public members of another instance of the class be retrieved by the method of the same class?
What is object in c++ wikipedia?
What are the advantages of c++ over c?
How do I download c++?