C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
6
Reply
What is Sealed modifiers?
Samir Bhogayta
10y
1.4k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
the sealed keyword is used to prevent inheritance
Ravi Patel
9y
1
The sealed modifier is used to prevent derivation from a class. An error occurs if a sealed class is specified as the base class of another class.
Keerthi Venkatesan
9y
1
Sealed is keyword if we want stop inheritance then we use Seale before class & for stopping ovrriding we use Sealed before method
Mukesh Kumar
8y
0
Nice explanation Dheeraj Kumar Jha.
Prakash Tripathi
9y
0
We know that sealed keyword teaches me security related information. OK so whenever we talk about sealed , sealed is a keyword in Oops, which is used for some particular behavior that means when we want to a method that is work for only for me i.e. particular class and we want that function can't use by the other class in that case we go for function or class mark as a sealed. sealed is a keyword which is used to seal a class or function and prevent it to get inherited from any other classes. In other words, a sealed class cannot be inherited. similarly function can't be used by the other class.
Dheeraj Kumar Jha
9y
0
Sealed types cannot be inherited & are concrete. Sealed modifiers can also be applied to instance methods, properties, events & indexes. It can't be applied to static members.Sealed members are allowed in sealed and non-sealed classes.
Samir Bhogayta
10y
0
What is Concurrency and its types?
What is New modifiers?
Message