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
Explain the advantages of inheritance.
How do you define a class in oop?
what is graphics
What is encapsulation c#?
What does and I oop mean in text?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is new keyword in oops?
Can main method override?
write knight tour problem which is present in datastructure
What is encapsulation with example?
What is difference between multiple inheritance and multilevel inheritance?
When not to use object oriented programming?
write a C++ program for booking using constructor and destructor.
What are the features of oop?
What is interface in oop?