Created
November 15, 2014 22:06
-
-
Save seronis/a6f1265ae0e08d021158 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
#include "myInnerClass.h" | |
myInnerClass::myInnerClass( int _val1, int _val2 ) | |
{ | |
val1 = _val1; | |
val2 = _val2; | |
} | |
myInnerClass::~myInnerClass() | |
{ | |
//dtor | |
} |
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
#ifndef MYINNERCLASS_H | |
#define MYINNERCLASS_H | |
class myInnerClass | |
{ | |
public: | |
myInnerClass(int,int); | |
virtual ~myInnerClass(); | |
protected: | |
private: | |
int val1; | |
int val2; | |
}; | |
#endif // MYINNERCLASS_H |
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
#include "myOutterClass.h" | |
myInnerClass myOutterClass::ic(1,2); | |
myOutterClass::myOutterClass() | |
{ | |
//ctor | |
} | |
myOutterClass::~myOutterClass() | |
{ | |
//dtor | |
} |
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
#ifndef MYOUTTERCLASS_H | |
#define MYOUTTERCLASS_H | |
#include "myInnerClass.h" | |
class myOutterClass | |
{ | |
public: | |
myOutterClass(); | |
virtual ~myOutterClass(); | |
static myInnerClass ic; | |
protected: | |
private: | |
}; | |
#endif // MYOUTTERCLASS_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment