can `enum class` be nested in another class?
# getting-started
a
can
enum class
be nested in another class?
t
It appears so, yes.
Copy code
class Foo {
    enum class Bar {
       A, B, C
    }
}
a
Yeah, it can, thanks. My problem was, I didn’t notice I was trying to add it to a Java class 😅