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 does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
How can you specify a class in C++?
What things would you remember while making an interface?
What is the difference between public and private data members?
Can circle be called an ellipse?
What are put and get pointers?
What is main function in c++ with example?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
Which software is used for c++ programming?
How do you find out if a linked-list has an end?
Write a recursive program to calculate factorial in c++.
Should you pass exceptions by value or by reference?
What does std mean in c++?
What are the advantages of c++ over c?
What is c++ used for in games?