Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass
- {
- private:
- int x;
- public:
- void setX(int x)
- {
- this->x = x;
- }
- };
- int main()
- {
- MyClass myClass;
- myClass.setX();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement