You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
535 B

function DimensionD(width, height) {
this.width = 0;
this.height = 0;
if (width !== null && height !== null) {
this.height = height;
this.width = width;
}
}
DimensionD.prototype.getWidth = function ()
{
return this.width;
};
DimensionD.prototype.setWidth = function (width)
{
this.width = width;
};
DimensionD.prototype.getHeight = function ()
{
return this.height;
};
DimensionD.prototype.setHeight = function (height)
{
this.height = height;
};
module.exports = DimensionD;