Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'type': a sealed class cannot be abstract
Remarks
Types defined by using value are sealed by default, and a class is abstract unless it implements all methods of its base. A sealed abstract class can neither be a base class nor can it be instantiated.
For more information, see Classes and Structs.
Example
The following example generates C3612:
// C3612.cpp
// compile with: /clr /c
value struct V: public System::ICloneable {}; // C3612
// OK
value struct V2: public System::ICloneable {
Object^ Clone();
};