Answer Posted / suresh reddy
1. Static limits the scope of an object(variable) or a
function to the file in which it being compiled.
2. A static variable retains its value between function
calls, even though its a local variable.
3. Lifetime of a static variable is the entire program.
4. We can't use extern keyword for a static object.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the three parts of a simple empty class?
What is oops and why we use oops?
What does <> mean pseudocode?
What is polymorphism what are the different types of polymorphism?
What is byval and byref? What are differences between them?
What is difference between inheritance and polymorphism?
What exactly is polymorphism?
What is multilevel inheritance explain with example?
What are oops functions?
#include
Where You Can Use Interface in your Project
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is protected in oop?
How to call a non virtual function in the derived class by using base class pointer
What is ambiguity in inheritance?