What is output of code

What is output of code public class B : A { }
  • A. It defines a class that inherits public methods of A only.
  • B. errors
  • C. It defines a class that inherits all methods of A but private members cannot be accessed.
  • D. an object is being made
  • Correct Answer: Option C
  • Views : 19

Leave a Reply

Your email address will not be published. Required fields are marked *