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

What is the difference between an external iterator and an internal iterator?

608


How can I learn dev c++ programming?

563


Which c++ compiler is best?

579


What are virtual functions in c++?

679


Can you overload the operator+ for short integers?

592






Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

609


What is basic if statement syntax?

559


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

1783


Which bit wise operator is suitable for checking whether a particular bit is on or off?

602


What is guard code in c++?

633


What is the most common mistake on c++ and oo projects?

515


What is the difference between the functions memmove() and memcpy()?

626


What is oop in c++?

595


What is an undefined behavior and sequence points

563


Write a c program for binary addition of two 8 bit numbers.

3660