what is a ststic variable and stiticfunction
briefly explain with exmple and in which case we use
Answer Posted / subhashish sen
When a variable is declared with static keyword,its called
as static variable,means it retains its value across
different function calls.Its basically used for counting no
of objects created for a class in C++ and its initialized to
0 by default.
When a function declared as static,its called as static
function.It can only operate on static variables.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is for loop and its syntax?
Can you inherit a private class?
What is overloading in oops?
Is data hiding and abstraction same?
What is the renewal class?
how to get the oracle certification? send me the answer
Plese get me a perfect C++ program for railway/airway reservation with all details.
Is enum a class?
What is destructor oops?
what is graphics
what is the drawback of classical methods in oops?
What are different oops concepts?
What is polymorphism and why is it important?
What is destructor in oop?
What is the important feature of inheritance?