Advertisement
Derga

Untitled

May 21st, 2023
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1.  
  2. class MyClass {
  3. public:
  4.   //MyClass(int x, int y, int z) : x_(x), y_(y), z_(z) {}
  5.  
  6.   MyClass(int x, int y, int z) {
  7.     x_ = x;
  8.     y_ = y;
  9.     z_ = z;
  10.   }
  11.  
  12.   int x_;
  13.   int y_;
  14.   int z_;
  15.  
  16.   int foo() { return 22; }
  17. };
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement