subject

Public class food{ public void eat(){ System. out. println("I am the eat method"); } } public class tuna extends food { public void eat(){ System. out. println("I am the eat tuna method"); } } public class potpie extends tuna { } public class Driver { public static void main(String[] args){ food buffet[]= new food[2]; buffet[0]= new tuna(); buffet[1]= new potpie(); for(int i = 0; i<2; i++) buffet[i].eat(); } } write the answer that best describes the highlighted code.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:30
How are natural numbers, whole numbers, integers, and rational numbers related
Answers: 3
question
Computers and Technology, 22.06.2019 06:30
Selective incapacitation is a strategy to reduce prison population
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
How are stop motion special effects in animated films created
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
You know the right answer?
Public class food{ public void eat(){ System. out. println("I am the eat method"); } } public class...
Questions
question
Mathematics, 31.08.2019 12:10
question
Social Studies, 31.08.2019 12:10
question
Social Studies, 31.08.2019 12:10
Questions on the website: 13722363