CCCPaste

Untitled

#include 

using namespace std;


class Point {
private:
    int x;
    int y;
    
public:
    
    Point() {
       // obicno empty constructor treba da izgleda tokmu vaka
    }
    
    Point(int _x, int _y) {
        x = _x;
        y = _y;
    }
    void pecati() {
        cout << x << " " << y << endl;
    }
    
    
};
int main() {
    
    Point p(5, 6);
    
    p.pecati();
    return 0;
}