// A simple Box class that takes length,width and height then returns the volume.
//By DreamVB 18:25 22/11/2016

#include <iostream>

using namespace std;
using std::cout;
using std::endl;

class CBox{

private:
	double bLength;
	double bWidth;
	double bHeight;
public:
	CBox(double Length = 1.0, double Width =1.0, double Height=1.0){
		this->bLength = Length;
		this->bWidth = Width;
		this->bHeight = Height;
	}

	double Volume(){
		return this->bLength*this->bWidth*this->bHeight;
	}

	bool Compare(CBox& thebox){
		return Volume() > thebox.Volume();
	}
};

int main(int argc, char *argv[]){
	CBox BoxA = { 2.2,2.9,2.9 };
	CBox BoxB = { 1.2, 2.3, 2.3 };

	cout << "BoxA Volume : " << BoxA.Volume() << endl;
	cout << "BoxB Volume : " << BoxB.Volume() << endl;
	cout << "BoxA > BoxB : " << BoxA.Compare(BoxB) << endl;

	system("pause");
	return 0;
}