是密封的命令c ++ 0x或者是只有微软谁拥有它 [英] Is the sealed command c++ 0x or is it only microsoft who has it

查看:123
本文介绍了是密封的命令c ++ 0x或者是只有微软谁拥有它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sealed 命令是在c ++ 0x还是只有MS使用它?

Is the sealed command going to be in c++ 0x or is it only MS who use it?

推荐答案

C ++ 0x有一个特殊的标识符 final ,意思与 >用于C ++ / CLI中的类。它会阻止从中派生类。

C++0x has a special identifier final which means the same as sealed for classes in C++/CLI. It prevents a class from being derived from.

阅读关于密封在维基百科

所以答案基本上是:它已经是一个不同的名称,并有不同的语法。

So the answer is basically: it already is but under a different name and has a different syntax.

这篇关于是密封的命令c ++ 0x或者是只有微软谁拥有它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆