Using the A , B , C , and D classes from this section, what is the

Question:

Using the A , B , C , and D classes from this section, what is the output of the following code fragment?

public static void main (String [] args) { A[] elements {new B(), new D(), new A (), new C()}; for (int i = 0; i < elements.length; i++) { elements [i].method2 () ; System.out.println (elements [i]); elements [i].methodl () ; System.out.println ();

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: