Question: The code below compiled and executed without issue before the addition of the line declaring errorStatus. Why does this line break the code?
- `StatusError` is an object, not a class and cannot be instantiated
- Only one instance of the class `Status` can be instantiated at a time
- `Status.Error` must be declared as an immutable type
- `Status.Error` is pribate to class and cannot be declared externally
Answer: The correct answer of the above question is Option A:`StatusError` is an object, not a class and cannot be instantiated