design a class named democall to represent a call to a demonstrator in the lab the d 5150989
Design a class named DemoCall to represent a call to a demonstrator in the lab. The DemoCall class contains the following: A private LocalTime data fields named startTime that stores the time at which the call is made (hours, using 24 hour time, and minutes), A private string data field named login for the login name of the student who made the call. A private boolean data field named isProcessed that indicates if the call is Processed by a demonstrator. A private long data field name responseMin that indicates the response time in minute. A constructor that creates a DemoCall object with the specified time and login You may assume that the time string is in the required format. A 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. Note: import java.time. Local Time; import java.time. Duration; String> LocalTime: LocalTime t LocalTime.parse (time String); Local Time -> String: String s t.toString(); Calculate the duration: long mins Duration.between(t1, t2).toMinutes(); For example: Test Result DemoCall d1 = new DemoCall(“13:30”, “afer010”); afer010 13:30 NOT PROCESSED System.out.println (d1); DemoCall d1 = new DemoCall(“03:30”, “afer010”); afer010 03:30 NOT PROCESSED System.out.println (d1); Answer: (nenalty.reaime: 0%)