本文介绍了如何防止类在C ++中可继承的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何在主题行中表达自己,但是我想知道的是什么
: < b>我有一个A类,所以我需要做什么
以确保没有人可以从中得到它?< / b>
Saumya
Hi,
I didn''t know how else to express myself in the subject line, but what
I want to know is this: <b>I have a class A, so what do I have to do
to ensure that no one can derive from it?</b>
Saumya
推荐答案
你为什么要这样做?用这个
行为来解释你想要实现的目标将有助于找到一个有意义的解决方案。
-
来得到我的真正的电子邮件地址,删除两个onkas
-
Dipl.-通知。 Hendrik Belitz
中央电子学院
研究中心Juelich
Why do you want to do this? Explaining what you want to achieve with this
behaviour would help to find a meaningful solution.
--
To get my real email adress, remove the two onkas
--
Dipl.-Inform. Hendrik Belitz
Central Institute of Electronics
Research Center Juelich
这篇关于如何防止类在C ++中可继承的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!