PLEASE ANSWER THE FOLLOWING DISCUSSION QUESTION. AFTER COMPLETING THE INITIAL RESPONSE, PLEASE ALSO PROVIDE RESPONSES TO THE TWO STUDENT’S DISCUSSION POSTS BELOW REGARDING THE SAME TOPIC!
This week, you have learned about various object-oriented programming principles and their importance in programming. In this discussion, you will spend time discussing these principles with your peers. You will also reflect on what you have learned in the first few modules of the course. In your initial post for this discussion, address the following:
In responding to your classmates, address the following:
To complete this assignment, review the Discussion Rubric.
OOP plays a role in programing by enabling four different principles to work together by allowing you to separate code into different classes. For example Encapsulation allows you to lock down classes that are not allowed to be touch by other classes in the code or scripts. While on the other hand you polymorphism that allows you to use other classes to create sub-classes to work off each other. Then abstraction allows you to nick pick what you want to use for each classes with different inputs. Then inheritance does what it means it can inherit other properties to fill its child or traits.
I think for me as I go into week three and my second programming class I am learning more on how I don’t think I have a mind set of a programmer to sit down and focus. I am having a hard time to sitting down and absorbing all the information that I need. I am slowly working through it but it is something I am noticing as time goes on.
So far learning about object oriented program has been pretty interesting. The four concepts working together form a nice cohesion.
First up is Encapsulation which is going to reduce the complexity of your code by helping to eliminate the overall number of parameters in the code. Increasing the reusability within our code is going to help us out as well. Instead of writing out entire equations we can just write one and reuse it over and over.
Next is Abstraction which is going to reduce the complexity. Whenever you create a new object it should only expose a high level mechanism for using it. The relevance needs to stay within the current object and what it needs to function. Good implementation of this will isolate the impact of changes as well.
With Inheritance we can start to do some unique things. After creating a parent class, we can begin to spawn child classes. Each of these child classes can be unique and have their own specific functions. Of course these can also spawn more child classes that can all use the fields and methods of the parent class. This will help eliminate redundant code.
Lastly polymorphism helps us refactor ugly switch/case statements. Instead of creating many switch statements we can polymorph one to be use over and over. This is necessary within the hierarchy of child parent classes. Without this we would not be able to have a method implemented for the parent class that we’d like for the children too.
Learning about OOP and how everything is coming together has been the best so far to me. I’ve enjoyed learning java quite a bit more than I initially expected I would, but I think I’m starting to understand the concepts a bit. I feel I just need more practice and review so I don’t forget to utilize all the tools available.
Are you overwhelmed by an intense schedule and facing difficulties completing this assignment? We at GrandHomework know how to assist students in the most effective and cheap way possible. To be sure of this, place an order and enjoy the best grades that you deserve!Post Homework