Shawn
08/29/2018, 1:37 PMSometimes we need to create an object of a slight modification of some class, without explicitly declaring a new subclass for it. Java handles this case with anonymous inner classes. Kotlin slightly generalizes this concept with object expressions and object declarations.https://kotlinlang.org/docs/reference/object-declarations.html