Now, you will add a few methods and modify the toString() method to your DemoCall class to extend its functionality. Starting

Now, you will add a few methods and modify the toString() method to your DemoCall class to extend its functionality. Starting with your solution to the previous task, now add the methods below: • The accessor and mutator methods for is Processed, login, response Min, and start Time. • A method named callProcessed(String endTimeString) which takes a time at which the call is processed. The response time in minutes is calculated. • A modified toString() method that returns a string describing the object. Write the DemoCall class in the answer box below. Note – keep a copy of your solution to this task because you will be extending it step by step in subsequent tasks. For example: Test Result afer010 13:30 RESPONSE 40 MINUTES DemoCall d1 = new DemoCall(“13:30”, “afero10”); d1.callProcessed(“14:10”); System.out.println(d1); true DemoCall d1 = new DemoCall(“13:30”, “afer010”); d1.callProcessed (“14:10”); System.out.println(d1.getIsProcessed());



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *