5 years ago in C++ Classes And Objects

For a method to be an interface between the outside world and a class,it has to be declared ?

[A] private
[B] protected
[C] public
[D] external
Next Question

Overall Stats

Attempted 217
Correct 78
Incorrect 49
Viewed 90


haile feleke - 2 years ago

why not private?

esraa nashat
esraa nashat - 10 hours ago

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

Abdul Haseeb Shershahabadi
Abdul Haseeb Shershahabadi - 1 month ago

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

Deep - 1 month ago

Deep from Kolkata, India is saying protected is correct answer

Priya - 1 month ago

Priya from Hyderabad, India is saying public 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

A class cannot be ?

  • [A] Virtual
  • [B] Generic
  • [C] Inline
  • [D] Friend

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

The public files in a class library usually contain ?

  • [A] Constant definitions
  • [B] member function definitions
  • [C] class declarations
  • [D] variable definition