Q. What is the output of the code public class B: A { }? (Solved)
1. Errors
2. It defines a class that inherits the public methods of A only
3. It defines a class that inherits all the methods of A but the private members cannot be accesse
4. D Both b and c
- c. It defines a class that inherits all the methods of A but the private members cannot be accesse