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
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
Is swift faster than c++?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
What is the latest c++ version?
Explain rtti.
Does std endl flush?
What is purpose of new operator?
Define Virtual function in C++.
what are Access specifiers in C++ class? What are the types?
Define pre-condition and post-condition to a member function in c++?
Write a C++ Program to check whether a number is prime number or not?
List the advantages of inheritance.
What are the differences between malloc() and calloc()?
what is a reference variable in C++?
Explain polymorphism?