Question: Java Lab1 Object-Oriented Hello World In this lab we will be building a simple object-oriented hello world. Declare a single class called HelloWorld according to
Java Lab1 Object-Oriented Hello World In this lab we will be building a simple object-oriented hello world. Declare a single class called HelloWorld according to the following UML class diagram: In addition to this class, a second class containing a main method should be declared. This second class is called the app class; this is because the main method drives the app when the class that contains it is compiled and run. You may declare both the hello world class and the app class in a single file. If you do, remember that there can only be one public class in each file and that the file must bear the name of the public class that is declared in it. Before writing any code, use software such as Microsoft Visio or draw.io to create a UML class diagram depicting the hello world class (like the one pictured above). There is no need to create a UML class diagram for the app class. Create pseudocode, describing purpose, input, processing and output. Each of these descriptions need only be one to two sentences. Once the logical specification (UML class diagram and pseudocode) is complete, then and only then move on to coding up the hello world class and the app class. Build incrementally and test. Make the tests as specific as possible. Testing requires identifying what is being tested, forming a hypothesis (what will the code thats being tested do when it is run?) compiling/running and observing the results. If ones hypothesis does not accord with the way the program runs then the code must be revised and retested. Sometimes the logical specification must be revised; if for example the implementation diverges from the logical specification.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
