what is static?
Answers were Sorted based on User's Feedback
Answer / azaad
static is keyword which is used for a variable and also for
a method.
static variable is initialized only once (i.e)one time memory.
static method of a class should not called with an objecy it
should be called with class name...
syntax: class-name.static method()
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / tanaji
if we use static method ,first static method will execute then other.
| Is This Answer Correct ? | 1 Yes | 0 No |
what is the diffrence between c# and c++
What are the fields of vtable
Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What are the 5 oop principles?
What are the advantages of polymorphism?
DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED PROGRAMING.
Program to check whether a word is in all capital letters
What Is a Polymorphism? How many types of polymorphism and whats that use in application?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
What is polymorphism and why is it important?
What is the purpose of polymorphism?