Tuesday, October 9, 2012
Boolean
This past week, we started learning about if statements. The lab was pretty straightforward, as it was like a combination of all the lessons we had learned previously. In other words, we had to integrate our "if" knowledge into previous lessons such as the material on constructors and methods. The most confusing part was running the statements in InOrderRunner because we had to call different methods in order to get the whole thing to work. The most trouble I had was remembering to create a new MWeiInOrder, because MWeiInOrder was just the "template." After I figured that out, everything else seemed to fall into place. I think that the //comments were really helpful, and I think these should be included on future labs because it really helps us understand what to do next. I don't always remember the order of the constructors/methods so comments are really good guidelines for labs. Lastly, I had to change the instance variables from private to public because I couldn't access them from MWeiInOrder if they were private. That was kind of puzzling because I couldn't remember how I could access private instance variables. All in all, I think the labs are starting to get easier as I accumulate more knowledge on these different topics we cover in class.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment