This commit is contained in:
2026-03-17 16:03:58 +01:00
parent cc1a7821d7
commit ee70d90785
4 changed files with 27 additions and 4 deletions

View File

@@ -6,9 +6,9 @@ private:
int nrAlbumu; // pole prywatne
public:
Student(std::string imie, int nrAlbumu)
: imie(imie), nrAlbumu(nrAlbumu) {} // konstruktor
void pokaz() { // publiczna metoda
Student(std::string imie, int nrAlbumu) // konstruktor
: imie(imie), nrAlbumu(nrAlbumu) {}
void pokaz() { // publiczna metoda
std::cout << imie << " " << nrAlbumu << std::endl;
}
};