class basex
{
int x;
public:
void setx(int y) {x=y;}
};
class derived : basex {};
What is the access level for the member function "setx" in
the class "derived" above?
a) private
b) local
c) global
d) public
e) protected

Answer Posted / gayatri p

Private

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

611


Is swift faster than c++?

558


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

587


What is the latest c++ version?

604


Explain rtti.

592






Does std endl flush?

607


What is purpose of new operator?

593


Define Virtual function in C++.

619


what are Access specifiers in C++ class? What are the types?

625


Define pre-condition and post-condition to a member function in c++?

657


Write a C++ Program to check whether a number is prime number or not?

627


List the advantages of inheritance.

640


What are the differences between malloc() and calloc()?

611


what is a reference variable in C++?

658


Explain polymorphism?

581