7 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
Loading...
Next Question

Overall Stats

Attempted 131
Correct 34
Incorrect 15
Viewed 82

Answers

Guest
Guest
SAICHARAN CHIPPAGIRI
SAICHARAN CHIPPAGIRI - 1 month ago

SAICHARAN CHIPPAGIRI is saying template is correct answer

Rajat Nagar
Rajat Nagar - 2 months ago

Rajat Nagar is saying virtual is correct answer

Priyanshu Mishra
Priyanshu Mishra - 2 months ago

Priyanshu Mishra is saying template is correct answer

Prakhar Tiwari
Prakhar Tiwari - 2 months ago

Prakhar Tiwari is saying template is correct answer

Niharika
Niharika - 3 months ago

Niharika is saying template is correct answer

Related Questions

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

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

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