在C#中使用密封类的实际用途是什么呢?

编程入门 行业动态 更新时间:2024-10-10 09:19:51
本文介绍了在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#中使用密封类的实际用途是什么呢?

本文发布于:2023-11-27 22:42:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639902.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:什么呢   用途

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!