What does the keyword "static" mean?

Answers were Sorted based on User's Feedback



What does the keyword "static" mean?..

Answer / subhashish sen

static keyword is used with both variables and
functions.when a static variables means it retains its value
for different function calls and in C++ this variable is
used mainly for counting no. of objects of a class and it is
not confined to a particular object and for static member
functions its can only manipulate static variables and a
static member function can be invoked without an object of
class.

Is This Answer Correct ?    13 Yes 0 No

What does the keyword "static" mean?..

Answer / mangai

static functions are used to retain the last assigned
value...static function creates only one copy of arguments
and uses it...

Is This Answer Correct ?    4 Yes 1 No

What does the keyword "static" mean?..

Answer / poornima.r

static means constant

Is This Answer Correct ?    0 Yes 4 No

What does the keyword "static" mean?..

Answer / anjana priyadharshini

Static:
static is one of the key word of the language c++.static means constant

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More OOPS Interview Questions

What is for loop and its syntax?

0 Answers  


WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??

21 Answers   Biocon, MIT, NIIT,


create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

2 Answers   CTS, Delhi University,


You have one base class virtual function how will call that function from derived class?

4 Answers  


What are the 4 main oop principles?

0 Answers  






Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.

6 Answers  


What is the example of polymorphism?

0 Answers  


What is the difference between and interface and an abstract class ?

4 Answers   IBM, Infosys, Ness Technologies,


what is virtual function?

3 Answers  


Why do we use polymorphism?

0 Answers  


write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation

1 Answers   College School Exams Tests, HCL, IBM, TCS,


How to call a non virtual function in the derived class by using base class pointer

3 Answers   HCL,


Categories