Computer Science, asked by daksh1826, 1 year ago

Enumerations (enums) must be declared in their own class.true or false?

Answers

Answered by legendarysumit
3
yes it's true.......
Answered by Anonymous
0

Enumerations (enums) must be declared in their own class. False

  • Public enums: Enums are packed in ordinary classes i.e. they should be declared in their own file. This is according to the overriding rule.
  • Non- Public enums: if enums are used in multiple places inside the same file and they are interconnected then they should be declared in the same file.
Similar questions