Question: Tester.java 1 package code; 4 Creates an ACTIVE VOICE sentence: 5 maps agent and patient to subject and object roles respective in the sentence. 7






Tester.java 1 package code; 4 Creates an ACTIVE VOICE sentence: 5 maps agent and patient to subject and object roles respective in the sentence. 7 public class Active implements Voice private Sentence sentence; 9 10 public Active (Sentence s) { sentence = s; 12 13 14 public String subject) 15 16 17 18 public String verb) 19 20 21 return sentence.agent(); return sentence.verb) 22 public String object() return sentence.patient); 23 24 25 26 @Override public String tostring) return "ACTIVE";) 27 28
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
