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 / madhusudan singh
d) public
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Explain what data encapsulation is in c++?
What is the difference between C and CPP?
State two differences between C and C++.
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
What is difference between rand () and srand ()?
Can recursive program be written in C++?
Why ctype h is used in c++?
What is decltype c++?
What is the average salary of a c++ programmer?
What are the differences between malloc() and calloc()?
What is searching? Explain linear and binary search.
Why we use #include iostream in c++?
Is c++ used anymore?
What is the difference between the functions memmove() and memcpy()?
What do manipulators do?