Answer:4. Consider the following code segment:
class A
{
int a;
public:
int b;
void inp();
}
class B : A
{
// members of B
}
Which of the following statement(s) is NOT true regarding the above code?
Options
a) The public members, namely ‘b’ and inp() of class A become private members of class B
b) The public members, namely ‘b’ and inp() of class A can be accessed by the member functions of class B
c) The public members, namely ‘b’ and inp() of class A are inaccessible to the objects of class B
d) None of the above
Answer : d) None of the above