Getting Started with Adobe After Effects - Part 6: Motion Blur
This module helps you to share, discuss and learn interview questions and answers of different technologies

C# - How to prevent a class from further inheriting?

Dec 20 2011 11:10PM by Ramireddy   

Question

How do you prevent a class from further inheriting?

Answer

By marking a class as "Sealed" we can prevent the class from inherited by other classes

public sealed class Customer
{
}

In .NET framework, "string" class is a sealed class. You can't inherit the string class.

Read More..   [32134 clicks]

Published under: C# Interview Questions and Answers ·  ·  ·  · 


Ramireddy
2 · 40% · 12972
0
Liked
 
0
Asked



Submit

Your Comment


Sign Up or Login to post a comment.

"C# - How to prevent a class from further inheriting?" rated 5 out of 5 by 2 readers
C# - How to prevent a class from further inheriting? , 5.0 out of 5 based on 2 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]