Is the sealed
command going to be in c++ 0x or is it only MS who use it?
Asked
Active
Viewed 1,943 times
6

Nicol Bolas
- 449,505
- 63
- 781
- 982

Merni
- 2,842
- 5
- 36
- 42
-
What is "the sealed command"? Where are you taking that from? C++0x introduces "final" and "override", maybe that's what you're after? – Kerrek SB Aug 11 '11 at 13:13
-
3Its actually from a different language "C++/CLI". Though it is based on C++ it is not the same language. – Martin York Aug 11 '11 at 13:41
-
In any case, it is not specific to C++0x. – Ajay Aug 11 '11 at 14:48
3 Answers
19
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.

Michał Trybus
- 11,526
- 3
- 30
- 42
3
sealed
is a really .net term and so is specific to MS C++/CLI.

David Heffernan
- 601,492
- 42
- 1,072
- 1,490
1
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++.

Preet Sangha
- 64,563
- 18
- 145
- 216