本文介绍了在C#中使用密封类的实际用途是什么呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在C#中使用密封类的实际用法是什么,然后是性能
What is the practical use of using sealed classes in C# other then performance
推荐答案它阻止了派生(继承)。 go google获取详细解释。 It prevents the derivation(Inheritance). Go google for detailed explanation.
只是一个小提示, C#Tweaks - 为什么要在类上使用sealed关键字? [ ^ ] :)快乐编码:) Just a small hint, C# Tweaks – Why to use the sealed keyword on classes?[^] :) Happy Coding :)
这里有一些见解:对密封关键字进行漫游 [ ^ ]。 Here some insight: "Rambling on the sealed keyword"[^].
更多推荐
在C#中使用密封类的实际用途是什么呢?
发布评论