Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Zivotno {
- public:
- void print_name(char *c) {
- cout << c << endl;
- }
- void f(int x, int y) {
- cout << x << " " << y << endl;
- }
- };
- class Kuce : public Zivotno {
- public:
- void f(int x) {
- cout << x << endl;
- }
- };
- int main() {
- Kuce k;
- k.Zivotno::f(1, 2);
- k.f(1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement