Tag

Companion Object

0 views collected around this technical thread.

Jike Tech Team
Jike Tech Team
Sep 25, 2019 · Mobile Development

Why Kotlin Differs from Java: Constructors, init Blocks, and Static Alternatives

This article explores the key differences between Kotlin and Java for Android development, covering constructors, init blocks, val versus final, static equivalents with companion objects, top‑level declarations, arrays, collections, sequences, visibility modifiers, and includes practical exercises.

AndroidCollectionsCompanion Object
0 likes · 23 min read
Why Kotlin Differs from Java: Constructors, init Blocks, and Static Alternatives
Hujiang Technology
Hujiang Technology
Jul 20, 2017 · Mobile Development

Kotlin Class Extensions, Companion Objects, Singleton Design, Dynamic Proxy, and Pseudo‑Multiple Inheritance

This article explains Kotlin's class extension functions, highlights pitfalls of static resolution, demonstrates smart casts, describes companion objects and singleton patterns, and shows how to implement dynamic proxies and pseudo‑multiple inheritance with practical code examples for Android development.

Class ExtensionsCompanion ObjectDynamic Proxy
0 likes · 11 min read
Kotlin Class Extensions, Companion Objects, Singleton Design, Dynamic Proxy, and Pseudo‑Multiple Inheritance