Base type

Although Kotlin builds upon Java's type system, not all the types are the same in Kotlin. One of these differences is the base type. Java has the Object class from which all reference types implicitly inherit. Kotlin's base type is called Any and it is similar to ObjectAny has only three methods from theObjecthashcodeequals and toString.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.77.54