This commit is contained in:
2026-05-05 15:27:55 +02:00
parent 1a8ba1c2bf
commit 6270be5805
13 changed files with 494 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <iostream>
class Bazowa {
protected:
int x;
public:
Bazowa(int x) : x(x) {}
};
class Pochodna : public Bazowa {
public:
Pochodna(int val) : Bazowa(val) {}
void wypisz() { std::cout << x << std::endl; }
};
int main() {
Pochodna p = Pochodna(1);
p.wypisz();
}