javainterfaces.pptVIP

  • 1
  • 0
  • 约1.6万字
  • 约 50页
  • 2016-10-06 发布于天津
  • 举报
javainterfaces

Possible Answer Fill in the Book class Code in BlueJ Possible Answer Application Could these 4 objects be kept in an array? What would the array type be? Write the Store application and test. Array of Goods Since Goods has a display() method, then this method can be called without type casting. Interface as a Type calculateTax() is a method in Taxable, and the reference (pointer) is of type Taxable you do not need to type cast to call it. Can you call item1.display()? When do you typecast? When the method is not defined in the reference’s class. When you cast a parent reference to a child (or

文档评论(0)

1亿VIP精品文档

相关文档