Chinaunix首页 | 论坛 | 博客
  • 博客访问: 123035
  • 博文数量: 152
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 800
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-12 01:36
文章分类

全部博文(152)

文章存档

2013年(152)

我的朋友

分类: AIX

2013-05-19 17:04:07

variety of methods. This means that for a group of related actions design a generic interface. Polymorphism allows the same interface,, thus reducing the complexity of the program will be in the same class action. Specific actions (specific action) () used in each case is the task of the compiler,, programmers do not need to manually choose. You only need to remember and use a common interface to retake the dog as a metaphor,, a dog's sense of smell is polymorphic. If the dog smell the smell of the cat,, it will bark and run after it. If the dog smell the smell of the food,, it will secrete saliva ran to the large food bowl. The two situations at work,, the difference lies in the same olfactory organ smelled the odor,, that is,, there are two different types of data acting on the dog's nose! Use a Java program,, this general concept can be used if appropriate,, in the programming environment composed Related articles:
阅读(417) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~