Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- periferiaHazi.h
- #ifndef PERIFERIAHAZI_H
- #define PERIFERIAHAZI_H
- #include <iostream>
- using namespace std;
- class periferiaHazi
- {
- int SerialNumber;
- public:
- virtual void print();
- };
- #endif
- tvKartya.h
- #ifndef TVKARTYA_H
- #define TVKARTYA_H
- #include "periferiaHazi.h"
- class tvKartya:public periferiaHazi
- {
- public:
- void print()
- {
- cout << "Hello world!" << endl;
- }
- };
- #endif
Add Comment
Please, Sign In to add comment