#include <iostream>
using namespace std;
class shape {
public:
virtual double area() = 0
};
class Circle;public shape {
double radius;
public:
Circle double r:radius
}
int main() {
Rectangle r(3,4);
r.area();
r.diagona();
}
To embed this project on your website, copy the following code and paste it into your website's HTML: