Question 5

Code:
class basex {
  int x;
public:
  void setx(int y) {x=y;}
};
class derived : basex {};

Question: What is the access level for the member function setx in the class derived above?

  1. protected
  2. public
  3. local
  4. private
  5. global



Leo Liberti 2008-01-12