This article explains the implementation of Gadget, Mobile and MP3 Player Classes in Java. It includes class diagrams, test cases, screen shots, and code with descriptions. The article also includes a TestClass that tests the functionality of the classes. The subject is Java programming and the course code is not mentioned. The content is relevant for computer science students in universities and colleges.
BookmarkShareRelated Documents
ContentsClass Diagram..................................................................................................................................3Test Cases and Screen Shots............................................................................................................4Test 1:..........................................................................................................................................4Test 2:..........................................................................................................................................4Test 3:..........................................................................................................................................4Test 4:..........................................................................................................................................4Test 5:..........................................................................................................................................4Test 6:..........................................................................................................................................4Code with description......................................................................................................................5Gadget.java..................................................................................................................................5Mobile.java..................................................................................................................................7MP3.java....................................................................................................................................10TestClass.java............................................................................................................................12
Class Diagram
Test Cases and Screen ShotsTest 1: Inspect a mobile phone, add calling credit, and re-inspect the mobile phoneTest 2: Inspect a mobile phone, make a call, and re-inspect the mobile phoneTest 3: Call the method to display the details of a mobile phoneTest 4: Inspect an MP3 player, download music, re-inspect theMP3 playerTest 5: inspect an MP3 player, delete a piece of music, and re-inspect the MP3 playerTest 6: Call the method to display the details of an MP3 playerOne screen shot for all test cases
Found this document preview useful?
Related Documents
Representation of Mobile Phone and MP3 Player Assignmentlg...