Created
January 5, 2017 16:54
-
-
Save Bueddl/298a84a009a0259e6ff134b0eeea1670 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 my_class | |
{ | |
public: | |
virtual ~my_class() | |
{ | |
std::cout << __PRETTY_FUNCTION__ << "() called" << std::endl; | |
} | |
void setter(int a) | |
{ | |
_some_member = a; | |
} | |
int getter() const | |
{ | |
return _some_member; | |
} | |
virtual int virtual_getter() const | |
{ | |
return 42; | |
} | |
private: | |
int _some_member = 42; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment