如果您想要一个类的方法不重写您将做什么? [英] if you want a method of a class not to override what will you do?
本文介绍了如果您想要一个类的方法不重写您将做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果您想让类的方法不覆盖您的工作呢?
if you want a method of a class not to override what will you do?
推荐答案
这里有关于方法的讨论 ^ ]
基本上,您需要研究虚拟 [密封 [ ^ ]
There is a discussion of the methods here[^]
Basically you need to research virtual[^] methods and sealed[^]
这篇关于如果您想要一个类的方法不重写您将做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文