<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
-->
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "..\..\..\reference.dtd">
<reference xml:lang="en-us" outputclass="element" id="cxxClassDerivationVirtual">
<title>cxxClassDerivationVirtual</title>
<shortdesc>The <cxxClassDerivationVirtual> element indicates if inheritance is declared as virtual.</shortdesc>
<refbody>
<section>
<title>Description</title>
<p>The <cxxClassDerivationVirtual> element is contained within a <cxxClassDerivation> element.
The name attribute must be set to virtual and the value attribute must be set to true.
The base referered to by the <cxxClassDerivationVirtual> element is indicated by using either a <cxxClassBaseClass>, <cxxClassBaseStruct> or <cxxClassBaseUnion> element as a sibling of <cxxClassDerivationVirtual>.</p>
</section>
<example>
<title>Example</title>
<codeblock><cxxClassDerivation>
<cxxClassDerivationVirtual name="virtual" value="true"/>
<cxxClassDerivationAccessSpecifier value="public"/>
<cxxClassBaseClass href="class_base">Base</cxxClassBaseClass>
</cxxClassDerivation></codeblock>
</example>
<section conref="../packagedef.dita#cxxClassDerivationVirtual-reference/cxxClassDerivationVirtual-containedBy-section"/>
<section conref="../packagedef.dita#cxxClassDerivationVirtual-reference/cxxClassDerivationVirtual-contains-section"/>
<section conref="../packagedef.dita#cxxClassDerivationVirtual-reference/cxxClassDerivationVirtual-contentModel-section"/>
<section conref="../packagedef.dita#cxxClassDerivationVirtual-reference/cxxClassDerivationVirtual-attList-section"/>
<section conref="../packagedef.dita#cxxClassDerivationVirtual-reference/cxxClassDerivationVirtual-classValue-section"/>
</refbody>
</reference>