Created
February 7, 2013 19:07
-
-
Save speedsticko/4733297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
class MySubObject { | |
public: | |
MySubObject(void); | |
~MySubObject(void); | |
std::string subName; | |
}; | |
class MyObject | |
{ | |
public: | |
MyObject(void); | |
~MyObject(void); | |
std::string name; | |
MySubObject subObj; | |
MySubObject *pSubObj; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment