listing 8.6: public class PolymorphismDemo { public static void main(String[] ar
ID: 3551424 • Letter: L
Question
listing 8.6:
public class PolymorphismDemo
{
public static void main(String[] args)
{
Person[] people = new Person[4];
people[0] = new Undergraduate("Cotty, Manny", 4910, 1);
people[1] = new Undergraduate("Kick, Anita", 9931, 2);
people[2] = new Student("DeBanque, Robin", 8812);
people[3] = new Undergraduate("Bugg, June", 9901, 4);
for (Person p : people)
{
p.writeOutput();
System.out.println();
}
}
}
Explanation / Answer
Need the answer to this assignment? Need help with your computer programming homework? Email renae04_05@yahoo.com I have answers to the homework. Will respond to emails in a timely manner and commented code so you can follow my work. Serious inquiries only!
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.