#include "Parallelepiped.h"
#include<iostream>
using namespace std;

Parallelepiped::Parallelepiped(int _height,int _width,int _length)
{
	this->height = _height;
	this->width = _width;
	this->length = _length;
}
	
Parallelepiped::~Parallelepiped()
{
}

void Parallelepiped::Set(int _height,int _width,int _length)
{
	this->height = _height;
	this->width = _width;
	this->length = _length;
}

double Parallelepiped::Area()
{
	return 6 * width * length;
}

double Parallelepiped::Volume()
{
	return height * width * length;
}

void Parallelepiped::Input()
{
	cout << "Введите длину:";
	cin >> length;
	cout << "Введите ширину:";
	cin >> width;
	cout << "Введите длину:";
	cin >> length;
}
Соседние файлы в папке Shape