Is a sealed C ++ 0x command or is it just Microsoft that has this

Can the sealed command be in C ++ 0x or is it just the MS that uses it?

+2
source share
3 answers

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

Read about Wikipedia Sealed

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

+16
source

sealed is really a .net member, so it is specific to MS C ++ / CLI.

+3
source

Sealed is used to declare a .net class from which it is impossible to obtain. It is available in C ++, but is included for .net types in MC ++.

+1
source

Source: https://habr.com/ru/post/905444/


All Articles