Answer:5. According to the following code, which of the following class members does the derived class inherit from the base class?
class base
{
float x;
int y;
public:
int a;
void get_a();
void put_a();
}
class derived : public base
{
// members of B
}
Option
a) float x
b) int y
c) get_a(), void put_a()
d) All of the above
Answer : c) get_a(), void put_a()