kotlin学习笔记

1.Note that Kotlin does not have a new keyword.

2.The open annotation on a class is the opposite of Java's final: it allows others to inherit from this class. By default, all classes in Kotlin are final, which corresponds to Effective Java, Item 17: Design and document for inheritance or else prohibit it.

posted @ 2017-09-08 16:03  kemp  阅读(78)  评论(0编辑  收藏  举报