Question: *JAVA PROGRAMMING* Write a Smart PhoneDriver to perform the following: a. create a SmartPhone object called phone, b. initialize its instance variables using its multi-argument
*JAVA PROGRAMMING*


Write a Smart PhoneDriver to perform the following: a. create a SmartPhone object called phone, b. initialize its instance variables using its multi-argument constructor. Pick the brand and memory capacity. Remember the songLibrary has been hard called "songLibrary that will store the songs in the SmartPhone, d. a two-argument constructor to initialize the instance variables brand and memory Capacity. You can hard code the songLibrary in the constructor with four songs of your choice in the two-argument constructor. e. a method called "totalPlayTime()" that will return an integer for the total number of seconds for all songs stored in the songLibrary. f. a method called "deleteAlisongs()" that will remove all songs from memory by placing "null" into each element in the array. g. a toString() method to display the object's three instance variables (including songLibary) in a user-friendly format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
