code của tui :
#include <iomanip>
class Square : virtual public Shape
{ private :
double canh;
public :
Square(double _canh){
canh= _canh;
}
virtual double GetArea() const {
cout<< fixed << setprecision(2)<< canh*canh<<endl;
}
};
khi chạy ra kết quả như ảnh
ai xem do mình sai hay do test của web sai ạ