Submit a question
Home
C#
Can you prevent your class from being inherited and becoming a base class for some other classes?
Home
SQL Tuning
Ajax
ASP.Net
Bluetooth
CSS
C
C#
C++
Cobol
Computer Architecture
Data Structure
Data WareHousing
Database
Ejb
HR
Html
J2ee
J2ME
Java
JavaScript
JMS
JSP
Linux
Networking
Object Oriented(OOPS)
Operating System
PeopleSoft
PERL
Pl/Sql
Python
PHP
Puzzles
SAP-ABAP
Sql
Siebel
Struts
VB.NET
VB
UNIX
Xml
Submit a question
Link
Privacy - policy
Java Download
Login Form
Username
Password
Remember Me
Forgot your password?
Forgot your username?
Create an account
Can you prevent your class from being inherited and becoming a base class for some other classes?
User Rating:
/ 1
Poor
Best
Yes, that is what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class WhateverBaseClassName. It is the same concept as final class in Java.
Comments
Search
Only registered users can write comments!
Powered by
!JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."
< Prev
Next >
Related links
Related Links:
Related Images
Related Links: