Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Point {
- private:
- int x = 5, y = 5;
- public:
- Point(int x = 0, int y = 0) {
- cout << this->x << " "<< this->y << endl; // 5 5
- cout << x << " "<< y << endl; // 0 0
- }
- };
- int main()
- {
- Point p;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement