Q.

What is the output of the code public class B: A { }?

A. Errors
B. It defines a class that inherits the public methods of A only
C. It defines a class that inherits all the methods of A but the private members cannot be accesse
D. D Both b and c
Answer» C. It defines a class that inherits all the methods of A but the private members cannot be accesse
1.7k
0
Do you find this helpful?
15

View all MCQs in

DotNet Technology

Discussion

No comments yet