C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Sealed class


Posted Date: 17 May 2008      Total Responses: 1

Posted By: Vamshi       Member Level: Bronze     Points: 1


Hi...
I want to know in which situation we have to use sealed class...
Could any one explain with a real time senario...


Thanks....





Responses

Author: Giribabu    18 May 2008Member Level: GoldRating:     Points: 2
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. A sealed class cannot also be an abstract class.

The sealed modifier is primarily used to prevent unintended derivation, but it also enables certain run-time optimizations. In particular, because a sealed class is known to never have any derived classes, it is possible to transform virtual function member invocations on sealed class instances into non-virtual invocations.



Post Reply
You must Sign In to post a response.
Next : How to Refresh data grid after updating a row
Previous : .Net Project EMPLOYEE ATTENDANCE INFORMATION
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



Read TATA Nano reviews.
dotNet Slackers   BizTalk Adaptors    Web Design   Scripts
Are you waiting for engineering entrance result? Watch here for engineering entrance results.
silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use