mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-09-07 20:20:39 +02:00
15 lines
327 B
C++
15 lines
327 B
C++
#include <iostream>
|
|
|
|
class Student {
|
|
private:
|
|
std::string imie; // pole prywatne
|
|
int nrAlbumu; // pole prywatne
|
|
|
|
public:
|
|
Student(std::string imie, int nrAlbumu) // konstruktor
|
|
: imie(imie), nrAlbumu(nrAlbumu) {}
|
|
void pokaz() { // publiczna metoda
|
|
std::cout << imie << " " << nrAlbumu << std::endl;
|
|
}
|
|
};
|