Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4. using namespace std;
  5. class Figura {
  6. public:
  7. void info()
  8. {
  9. cout<<"Figura";
  10. }
  11. };
  12. class Kwadrat:public Figura{
  13. public:
  14. void info()
  15. {
  16. cout<<"Kwadrat";
  17. }
  18. };
  19.  
  20. int main(int argc, char** argv) {
  21. Figura FIGURA;
  22. Kwadrat KWADRAT;
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement