What is the sealed class?
What is the sealed class?
1467
28-Oct-2019
Updated on 28-Oct-2019
Om ji mishra
28-Oct-2019When we create a sealed class then we cannot inherit that class with any derived class. It is created when we want to restrict the class from being inherited. if we use a shield class with any derived class then the compiler will throw an error. We can use the property of a sealed class in any other class by creating an object.