原文:http://coolketang.com/staticCoding/5a99261ed50eee2ea3037738.html
1. 扩展就是向一个已有的类、结构体或枚举类型添加新的能力。 扩展可以对一个类型添加新的功能,但是不能重写已有的功能。