Is it possible to create a constant class that has instance members?

Question

Grade: Education Subject: Support
Is it possible to create a constant class that has instance members?
Asked by:
68 Viewed 68 Answers

Answer (68)

Best Answer
(229)
No, it's not possible to create a constant class with instance members. The `sealed` keyword explicitly prevents inheritance and instance access. The entire purpose of a constant class is to represent a fixed, unchangeable type.