オブジェクト指向は愚かな考え。
■ このスレッドは過去ログ倉庫に格納されています
0744デフォルトの名無しさん
2014/08/24(日) 17:39:29.67ID:uBdWgXj+{
return Math.PI * radius * radius;
}
public static double GetRectangleArea(double width, double height)
{
return width * height;
}
public static double GetTriangleArea(double bottom, double height)
{
return bottom * height / 2;
}
■ このスレッドは過去ログ倉庫に格納されています