Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- using namespace std;
- class Figura {
- public:
- void info()
- {
- cout<<"Figura";
- }
- };
- class Kwadrat:public Figura{
- public:
- void info()
- {
- cout<<"Kwadrat";
- }
- };
- int main(int argc, char** argv) {
- Figura FIGURA;
- Kwadrat KWADRAT;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement