CSHTP3e_27.pptVIP

  • 2
  • 0
  • 约1.67万字
  • 约 50页
  • 2016-12-19 发布于北京
  • 举报
27 Generics OBJECTIVES In this chapter you will learn: To create generic methods that perform identical tasks on arguments of different types. To create a generic Stack class that can be used to store objects of any class or interface type. To understand how to overload generic methods with nongeneric methods or with other generic methods. To understand the new() constraint of a type parameter. To apply multiple constraints to a type parameter. 27.1?? Introduction 27.2?? Motivation for Generic Methods 27.3?? Generic-Method Implementation 27.4?? Type Constraints 27.5?? Overloading Generi

文档评论(0)

1亿VIP精品文档

相关文档