C++14

PHOTO EMBED

Sat Sep 17 2022 05:52:47 GMT+0000 (Coordinated Universal Time)

Saved by @kodekutulisanku #c++

#include <iostream>
using namespace std;
class Point
{
    int x, y;
  public:
   Point(int i = 0, int j =0)
   { x = i; y = j;  }
   int getX() const { return x; }
   int getY() {return y;}
};
 
int main()
{
    const Point t;
    cout << t.getX() << " ";
    cout << t.getY();
    return 0;
}
content_copyCOPY