开发者

Is the sealed command c++ 0x or is it only microsoft who has it

开发者 https://www.devze.com 2023-03-27 02:58 出处:网络
Is the sealed command 开发者_JAVA百科going to be in c++ 0x or is it only MS who use it?C++0x has a special identifier final which means the same as sealed for classes in C++/CLI. It prevents a class f

Is the sealed command 开发者_JAVA百科going to be in c++ 0x or is it only MS who use it?


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.

Read about sealed in Wikipedia

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


sealed is a really .net term and so is specific to MS C++/CLI.


Sealed is used to declare a .net class that cannot be derived from. It's available in C++ but on for .net types in MC++.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号