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*

*JAVA PROGRAMMING* Write a Smart PhoneDriver to perform the following: a. create

a SmartPhone object called phone, b. initialize its instance variables using its

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!