#include "cCylinder.h" void cCylinder::SetVolume() { //volume = area * height; //これはできない! areaはベースのプライベートメンバだから volume = GetArea() * height; }