Advertisement
Josif_tepe

Untitled

Sep 12th, 2021
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Point {
  6. private:
  7.     int x = 5, y = 5;
  8. public:
  9.     Point(int x = 0, int y = 0) {
  10.         cout << this->x << " "<< this->y << endl; // 5 5
  11.         cout << x << " "<< y << endl; // 0 0
  12.     }
  13. };
  14. int main()
  15. {
  16.     Point p;
  17.    
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement