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

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 102
Correct 33
Incorrect 19
Viewed 50

Answers

Guest
Guest
haile feleke - 3 years ago

why not private?

Abdalrhman Mansour
Abdalrhman Mansour - 13 hours ago

Abdalrhman Mansour is saying public is correct answer

Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying external is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying public is correct answer

Rohan Bhosale
Rohan Bhosale - 4 years ago

Rohan Bhosale from Pune, India is saying external is correct answer

Related Questions

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

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

A class cannot be ?

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

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

The public files in a class library usually contain ?

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