-
-
Save kasramp/14fc2c40c8a4cd53c375d2083147c1a9 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
class Test { | |
protected: | |
private: | |
public: | |
int x; | |
Test(); | |
MyMethod(); | |
}; | |
Test::Test() : x(10) { } | |
// or | |
Test::Test() { | |
x = 10; | |
} | |
int Test::MyMethod() { | |
x = 10; | |
} | |
// or | |
int Test::MyMethod(): x(10) { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment