static void Main(string[] args) { Box Box1 = new Box(5, 5, 7); // Declare Box1 of type Box double volume = 0.0; // Store the volume of a box here // volume of box 1 volume = Box1.getHeight() * Box1.getLength() * Box1.getBreadth(); Console.WriteLine("Volume of Box1 : {0}", volume); //update the height Box1.setHeight(10); volume = Box1.getHeight() * Box1.getLength() * Box1.getBreadth(); Console.WriteLine("Update the volume of Box1 : {0}", volume); Console.ReadKey(); }