Consider the following classes with method compose(). class…

Consider the following classes with method compose(). class A { public Iterator compose (Iterator itr) // Requires: itr is not null // Modifies: itr // Effects: if this is not appropriate for itr throw IAE // else return generator of itr composed with this class B { public Iterator compose (Iterator itr) // Modifies: itr // Effects: if itr is null throw NPE // else if this is not appropriate for itr throw IAE // else return generator of itr composed with this class C { public Iterator compose (Iterator itr) // Modifies: itr // Effects: if itr is null return iterator equal to this // else if this is not appropriate for itr throw IAE // else return generator of itr composed with thisAnalyze the “methods rule” for compose() in the case that B extends A. Which of the following is/are true (select all correct answer(s) and no incorrect answer(s) to get credit)?