在 Kotlin 中,所有东西都是对象,在这个意义上讲可以在任何变量上调用成员函数与属性。 While certain types have an optimized internal representation as primitive values at runtime (such as numbers, characters, booleans and others), they appear and behave like regular classes to you.
本节会描述 Kotlin 中使用的基本类型:
{type="tip"}