Can you prevent your class from being inherited and
becoming a base class for some other classes?
Answers were Sorted based on User's Feedback
Answer / shantanu singh patel
Yes you can make it by using Sealed keyword.
No when your class in Sealed you cant inherit the class
then the question of base class for some other class is not
significant.
Thanks and Regards,
Shantanu
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / sharif
when a class is sealed it not possible to access the
members of the base call to the derived class?
wat happend when i use insted of sealed, am using the static
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / dhanunjaya
yes,By using a keyword called "sealed".a sealed class can
never be a base class for any class,it is the bottom most
class in a class hierarchy.......so it cant be be base
class further more....
| Is This Answer Correct ? | 1 Yes | 1 No |
What are the types of assembly available
What does the keyword virtual mean in the method definition?
3 Answers Ipog Software, Satyam, Visual Soft,
How long will it take to learn c#?
What is hashtable in c# net with example?
What does || mean in programming?
What is the difference between CreateObject() and GetObject()?
Can you prevent a class from being instantiated?
Are c and c# the same thing?
What is inner class in c#?
List some Advantages of switch-case over if else?
Explain About web methods and its various attributes
What is func c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)