I'm sorry but the west plus and the height in are not the same thing. ![]() Okay, let's do it? We just want self and this time we want to return The Heights two times the heights or two times the west, that's the other one of course. ![]() It should return the correct width, times height value. This will come back then the did two numbers again. The self got with the variable and south dot height points. The area is just the height at certain times. Just has itself, so get area then return the area. The method that we want to use is called get area. Making sure everything is aligned is very particular. You are familiar with how those things are. I don't remember taking definition or defining it. Okay, let's do it? I'm sorry but I forgot to do it. We only have two data fields and the data field should be equal to the height and the height should be equal to the field. We did the same thing with the height we set it to. If you will have with the one, our initial values are equal to one and we should have self the variables we want. It's normal when you start a class and you want to have your initial initialize here. We don't need anything there since it is a father class. ![]() The first thing we have to do is create the rectangle class by naming it, then we have to take the class and name it. Let's begin the question, without much more ado. The method named get perimeter returns the perimeter. A method named get area should be used to return the area of the rectangle, and the initial value should be one for with and height. There should be two data fields with height and with. Correct, this class should include the following. We are currently looking at problem number 7.1 in the great python book.
0 Comments
Leave a Reply. |