69 10.docVIP

  • 9
  • 0
  • 约7.59千字
  • 约 6页
  • 2016-11-25 发布于北京
  • 举报
69 10

Name:_______________________ (50 minutes) Introduction to Programming Harbin Normal University Instructor: Fullway Powered By: Y. Daniel Liang Part I: Multiple Choice Questions: 1. A subclass inherits _____________ from its superclass. a. private method b. protected method c. public method d. a and c e. b and c 2. Show the output of running the class Test in the following code: interface A { void print(); } class C {} class B extends C implements A { public void print() { } } public class Test { public static void main(String[] args) { B b = new B();

文档评论(0)

1亿VIP精品文档

相关文档