#include
using namespace std;
class student {
private:
string ime;
string prezime;
int godini;
public:
student() {
}
student(string _ime, string _prezime, int _godini) {
ime = _ime;
prezime = _prezime;
godini = _godini;
}
string get_ime() {
return ime;
}
string get_prezime() {
return prezime;
}
int get_godini() {
return godini;
}
void set_ime(string _ime) {
ime = _ime;
}
void set_prezime(string _prezime) {
prezime = _prezime;
}
void set_godini(int _godini) {
godini = _godini;
}
};
int main()
{
student s("petar", "petar", 22);
cout << s.get_ime() << endl;
s.set_prezime("alek");
cout << s.get_prezime() << endl;
return 0;
}