7 years ago in C++ Functions

Static Member function

[A] can access any other member function & member variables
[B] can access only static member variables & member functions
[C] can be only called through object of the class
[D] Returns only static data
Loading...
Next Question

Overall Stats

Attempted 59
Correct 19
Incorrect 5
Viewed 35

Answers

Guest
Guest
Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying can access only static member variables & member functions is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying can access only static member variables & member functions is correct answer

Neyah Deshmukh
Neyah Deshmukh - 4 years ago

Neyah Deshmukh from India is saying can access any other member function & member variables is correct answer

Muhammad Asghar
Muhammad Asghar - 4 years ago

Muhammad Asghar from Vehari, Pakistan is saying can access only static member variables & member functions is correct answer

kamaldeep singh
kamaldeep singh - 4 years ago

kamaldeep singh from India is saying can access only static member variables & member functions is correct answer

Related Questions

Which of the following parameter passing mechanism is/are supported by C++ but not in C?

  • [A] Pass by value
  • [B] Pass by reference
  • [C] Pass by value result
  • [D] All of the above

The library function exit() causes an exit from ?

  • [A] The loop in which it occurs
  • [B] The block in which it occurs
  • [C] The function in which it occurs
  • [D] The program in which it occurs

A friend function can be used to ?

  • [A] avoid arguments between classes
  • [B] allow access to classes whose source code is unavailable
  • [C] allow one class to access an unrelated class
  • [D] increase the versatility of an overloaded operator

Which of the following statement is correct?

  • [A] Constructors can have default parameters.
  • [B] Constructors cannot have default parameters.
  • [C] Constructors cannot have more than one default parameter.
  • [D] Constructors can have at most five default parameters.

Which of the following function declaration is/are incorrect?

  • [A] int Sum(int a, int b = 2, int c = 3);
  • [B] int Sum(int a = 5, int b);
  • [C] int Sum(int a = 0, int b, int c = 3);
  • [D] Both B and C are incorrect.
  • [E] All are correct.