Programming Inheritance
Autor: mrintensitydjx • January 15, 2013 • Essay • 398 Words (2 Pages) • 4,507 Views
In your opinion, what are the three biggest challenges in planning and designing a solution for a programming problem? What can you do to overcome these challenges? How would you apply these techniques to the programs in this class?
When developing a program, a programmer might encounter some problems or technical issues. A lot of times a program may or may not work in some areas. Sometimes one section of the code might work and the other section might. It might be a difficult issue to a non-difficult issue. A difficult challenge or issue would be the logic or algorithm is out of sync. Or the program won’t compile correctly. A non-difficult issue would be a missing a brace “}”. Or a case sensitive issue since in java programming language and other programming languages, it is usually a major issue. As a reminder to a programmer, if these issues come around again, is to kind of watch out for these type of issues especially with forgetting to open and close the “{“ and to remember case sensitivity. Write down what happened and share what you encountered. These techniques that be applied to future classes and learning new programming languages.
Using an example from your work or daily life, describe an “is-a” relationship. Why is an “is-a” relationship important when designing an inheritance between classes?
Inheritance is a concept that is used in object-oriented programming. It defines relationships between other objects. The name inheritance suggests that objects are able to inherit characteristics from other objects. A is-a relationship is when one class is a subclass to another class. The best way to relate a is-a relationship is during my work week, I use a spreadsheet on a daily basis. It was created and passed down to me from my manager and upper management. I update that spreadsheet on a daily basis. But that spreadsheet is used by other employees. I am the only one that updates that spreadsheet.
...