Need programming help to create a main class to UNIT TEST 3 subclasses.

User Generated

cdwbuafba

Programming

Description

Create a class that has a main() method. This class will be your virtual world application that will test the MyClone, ShoutBox, and class you decided to create in Module Seven. 

Here is the code for all 3 of my classes, but I'm not sure how Unit Test these classes with a main class method. The code is below.

Homework (MyCloneScreenshots and CD) 7-2.docx 

Homework (ShoutBoxWMethods) 8-2.docx 

Homework (TelguardClassScreenshots and CD) 7-2.0.docx 

Unformatted Attachment Preview

HERE IS SOME CODE FOR SECOND CLASS BELOW! package telguard; /** * * @author philip.johnson1 */ public class Telguard { private String TG1; private String TG4; private String TG7; public static void main(String[] args) { //Creates a new object called radio1 from the MyClone class. Telguard radio1 = new Telguard (); //Creates a new object called radio4 from the MyClone class. Telguard radio4 = new Telguard (); //Creates a new object called radio7 from the MyClone class. Telguard radio7 = new Telguard (); } /*Creates a MyClone constructor that returns a null value if the TG1, TG4, or TG7 functions are left blank. */ public Telguard () { this.TG1 = null; this.TG4 = null; this.TG7 = null; } } HERE IS SOME CODE FOR SECOND CLASS BELOW! package telguard; /** * * @author philip.johnson1 */ public class Telguard { private String TG1; private String TG4; private String TG7; public static void main(String[] args) { //Creates a new object called radio1 from the MyClone class. Telguard radio1 = new Telguard (); //Creates a new object called radio4 from the MyClone class. Telguard radio4 = new Telguard (); //Creates a new object called radio7 from the MyClone class. Telguard radio7 = new Telguard (); } /*Creates a MyClone constructor that returns a null value if the TG1, TG4, or TG7 functions are left blank. */ public Telguard () { this.TG1 = null; this.TG4 = null; this.TG7 = null; } }
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
I was having a hard time with this subject, and this was a great help.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags