5 years ago in C++ Classes And Objects

Which of the following keywords cannot appear inside a class definition ?

[A] friend
[B] static
[C] template
[D] virtual
Next Question

Overall Stats

Attempted 185
Correct 57
Incorrect 35
Viewed 93


esraa nashat
esraa nashat - 3 days ago

esraa nashat from Cairo, Egypt is saying friend is correct answer

naga manoj
naga manoj - 1 month ago

naga manoj is saying template is correct answer

Abdul Haseeb Shershahabadi
Abdul Haseeb Shershahabadi - 1 month ago

Abdul Haseeb Shershahabadi from Birpur, India is saying template is correct answer

Deep - 1 month ago

Deep from Kolkata, India is saying friend is correct answer

Priya - 1 month ago

Priya from Hyderabad, India is saying template is correct answer

Related Questions

Objects of the same class share the values of ...... while they maintain separate values for ........ .

  • [A] Static variables, non static variables
  • [B] Non static variables, static variables
  • [C] Global variables, static variables
  • [D] Static variables, register variables

Which member function of class cannot modify its objects attributes ?

  • [A] friend functions
  • [B] Private member functions
  • [C] Constant member functions
  • [D] Static member functions

In C++, a function contained within the class is called ?

  • [A] member function
  • [B] a class function
  • [C] a method
  • [D] none of above

Which of the following is false?

  • [A] Variable has scope & visibility
  • [B] Variables having scope may not be visible
  • [C] Variables having visibility may not have scope
  • [D] None of these