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 / guest

private

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest c++ version?

604


What does override mean in c++?

578


How can I learn c++ easily?

618


Describe the process of creation and destruction of a derived class object?

639


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

628






Do you know the problem with overriding functions?

570


Is empty stack c++?

519


Why we use #include conio h in c++?

591


What is stoi in c++?

695


What is the history of c++?

555


What is the difference between structure and class?

552


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

1746


What is a virtual destructor? Explain the use of it?

544


What does int * mean in c++?

632


What are move semantics?

669