dotfiles/.config/Code/User/History/17d3e36f/7E4T.cpp
RafayAhmad7548 ab03d5f10c test
2024-06-16 18:53:25 +05:00

32 lines
No EOL
467 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;
double radius;
public:
Circle(long int centerX, long int centerY, double radius) : centerX(centerX), centerY(centerY){
calcArea();
}
};
int main(){
return 0;
}