✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Klasa Tocka je zadana sa:
#include <iostream>
using namespace std;
class Tocka {
public:
double x, y;
Tocka();
Tocka(const Tocka& t);
};
Tocka::Tocka() { x = y = 0.0; }
Tocka::Tocka(const Tocka& t) { x=t.x; y=t.y; }
Ispravno korištenje kopirnog konstruktora je: