What is the output of the code
public class B : A { }
Options
- Errors
- It defines a class that inherits the public methods of A only.
- It defines a class that inherits all the methods of A but the private members cannot be accessed.
- b and c
CORRECT ANSWER : It defines a class that inherits all the methods of A but the private members cannot be accessed.
Write your comments