# cxxVariableAccessSpecifier

The <cxxVariableAccessSpecifier> element specifies the level of access the variable has.

## Description

The <cxxVariableAccessSpecifier> element must contain the attributes name and value. By default name is set to "access" and cannot be altered. The value attribute can be one of three values, public, protected and private. The default for value is "public".

<cxxVariableAccessSpecifier> has no child elements.

## Example

    <cxxVariableAccessSpecifier value="private" />

## Contained by

cxxVariableDefinition

## Contains

## Content Model

No content.

## Inheritance

topic/state reference/state apiRef/apiQualifier apiValue/apiQualifier cxxVariable/cxxVariableAccessSpecifier

Parent topic: cxxVariable module