Skip to content

Instantly share code, notes, and snippets.

@Bueddl
Created January 5, 2017 16:54
Show Gist options
  • Save Bueddl/298a84a009a0259e6ff134b0eeea1670 to your computer and use it in GitHub Desktop.
Save Bueddl/298a84a009a0259e6ff134b0eeea1670 to your computer and use it in GitHub Desktop.
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