‫Welcome back.
‫Now that you know how to use properties, it's time for a little challenge.
‫And this one is really just a little one.
‫So please go ahead and create a read only property called Front Surface, which calculates the front
‫surface based on height and length.
‫So please pause the video and try to do that, please.
‫All right.
‫I hope you tried it.
‫I'm just going to create it at the bottom below all of our properties, and I'm going to make it an
‫int and call it front surface.
‫And now in here I only have a get because it's a read only, so I cannot set it.
‫That's really important.
‫Return height multiplied with length that we are.
‫So now of course when we do that we should also check it out.
‫So I didn't write that as a challenge, but of course you want to see what the front surface is.
‫So I'm just going to write C double DU and here it's going to be front surface of the box is and then
‫it's going to be the box dot front surface and of course the comma has to be placed there as well.
‫So now let's run it.
‫And we are front surface of the box is 20.
‫That is a length times height.
‫So five times four is going to be 20 and that's exactly what we have.
‫So you could go ahead and adjust the box class as you please.
‫You could add the diagonal, you could add all kinds of things to the box.
‫For example, the weight you could base the weight on the length and height or on the volume.
‫So, you know, for example, that it's metal or well, the stone or something like that.
‫And based on the stone that is in there, you could calculate how heavy it is or whatever you can come
‫up with.
‫So that's properties and yeah, see you in the next video.