28 lines
315 B
C++
28 lines
315 B
C++
![]() |
/*
|
||
|
Rafay Ahmad
|
||
|
23I-2526
|
||
|
*/
|
||
|
#include <iostream>
|
||
|
using namespace std;
|
||
|
|
||
|
class BasicShape{
|
||
|
double area;
|
||
|
public:
|
||
|
double getArea(){
|
||
|
return area;
|
||
|
}
|
||
|
virtual void calcArea() = 0;
|
||
|
};
|
||
|
|
||
|
class Circle : public BasicShape{
|
||
|
long int centerX;
|
||
|
long int centerY;
|
||
|
|
||
|
};
|
||
|
|
||
|
int main(){
|
||
|
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
}
|