Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C++ code > Auxiliary Topics > Example Code
  
Example Code
//Attribute Initializer - header file
// File foo.h
class foo
{
static bar* m_bar;
};
//Attribute Initializer - implementation file
// File foo.cpp
bar* foo::m_bar = NULL;
//Constructor Initializer - Header file
// File foo.h
class foo
{
bar* m_bar;
foo();
};
//Constructor Initializer - Header file
// File foo.h
foo::foo():m_bar(NULL)
{
}