adplus-dvertising
frame-decoration

Question

What are static member functions?

a.

Functions which use only static data member but can’t be accessed directly

b.

Functions which uses static and other data members

c.

Functions which can be access outside the class with the data members

d.

Functions using only static data and can be accessed directly in main() function

Answer: (d).Functions using only static data and can be accessed directly in main() function

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What are static member functions?

Similar Questions

Discover Related MCQs

Q. How can static member function can be accessed directly in main() function?

Q. Correct syntax to access the static member functions from the main() function is:

Q. What are const member functions?

Q. Which among the following best describes the inline member functions?

Q. What are friend member functions (C++)?

Q. What is the syntax of a const member function?

Q. Which keyword is used to make a nonmember function as friend function of a class?

Q. Member functions _____________________

Q. All type of member functions can’t be used inside a single class.

Q. Which keyword is used to define the static member functions?

Q. Which keyword is used to define the inline member function?

Q. Which among the following are valid ways of overloading the operators?

Q. Which among the following is mandatory condition for operators overloading?

Q. When the operator to be overloaded becomes the left operand member then ______________

Q. If the left operand is pointed by *this pointer, what happens to other operands?

Q. If a friend overloaded operator have to be changed to member overloaded operator, which operator should be used with the class name?

Q. What is the syntax to overload an operator?

Q. Why the left parameter is removed from parameter list?

Q. Which object’s members can be called directly while overloading operator function is used (In function definition)?

Q. If left operand member is specified directly in the function definition, which is the correct implicit conversion of that syntax?