Flashcards
Sealed class and Interface
Cards in this deck (1)
- 1Why Sealed Classes and Interfaces?The main purpose of the sealed class is to stop the inheritance from the user so that they can't attain attributes or behaviors from a sealed class
- Methods of sealed class is implemented so that no other class can extend it and implement its own method
- Sealed class is used to stop a class to be extended or implemented. You cannot derive any class from it.
Information
- Description
- Flashcards on Sealed class and Interface, created by BLU BLU on 28/01/2025.
- Created by
- BLU BLU
- Views
- 0
- Rating