What I learned in chapter 2 of Java is that when typing an object oriented code and you have to go back to add something or fix something then the coder does not have to touch or mess around with the code that already works. All that needs to be done is fix or add that one class and your code is perfect again. You can also reuse a part of a code if need be for a different code that way you don't have rewrite it. I also leaned that Java is more of an object talking to an object instead of having the whole program run through the one head boss. Another thing that I learned is that a subclass can over rule a superclass if the subclass has one difference/specific does that it has to do but is still similar to the superclass's knows. A knows is the instance variables and the does is the methods. I have learned many cool things about Java that is making it easier and easier to understand with every read.
No comments:
Post a Comment