why does an `object` have to include a class body ...
# announcements
b
why does an
object
have to include a class body (even if it would be empty?) e.g.:
Copy code
abstract class Foo(val num: Int)

// Error: expecting a class body
val x = object : Foo(42)

// Works
val y = object : Foo(42) {}
👍 1
❤️ 2