>Sometimes we need to create an object of a sli...
# getting-started
s
Sometimes 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