fajne rzeczy

This commit is contained in:
2026-03-17 14:20:45 +01:00
parent abd454ec61
commit cc1a7821d7
11 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#include <iostream>
class Student {
private:
std::string imie; // pole prywatne
int nrAlbumu; // pole prywatne
public:
Student(std::string imie, int nrAlbumu)
: imie(imie), nrAlbumu(nrAlbumu) {} // konstruktor
void pokaz() { // publiczna metoda
std::cout << imie << " " << nrAlbumu << std::endl;
}
};