Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <conio.h>
- using namespace std;
- class figura1
- {
- private:
- float a;
- float b;
- public:
- figura(float aa,float bb);
- virtual float area();
- virtual void output();
- };
- figura1::figura(float aa,float bb)
- {
- a=aa;
- b=bb;
- }
- float area(float S,float a,float b)
- {
- return S=a*b;
- }
- void output(float S)
- {
- cout«"S";
- }
- int mine()
- {
- float a;
- float b;
- cout«" a ";
- cin» a;
- cout«"b";
- cin»b;
- cout« "S";
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement