Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java Programming Study Set 1
Quiz 11: Advanced Inheritance Concepts
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 61
Essay
The shaded header of the talkingAnimal() method accepts any type of Animal argument. Explain how this is possible.
Question 62
Essay
Compare and contrast abstract classes and interfaces.
Question 63
Essay
Why do many programmers consider multiple inheritance to be a difficult concept?
Question 64
Essay
How is the Object class equals() method implemented?
Question 65
Essay
The code above provides an example of an interface class. Explain the purpose and advantages of creating interfaces that store related constants.
Question 66
Essay
Describe the two method types programmers of an abstract class can include.
Question 67
Essay
public class Animal { } public class Animal extends Object { } The two class declarations above have identical outcomes. Explains why this is the case.
Question 68
Essay
The equals() method returns a boolean value indicating whether two objects are equal. Using the above code, will the two BankAccount objects be equal? Explain why or why not.
Question 69
Essay
Give an example of how you can create an interface to have a class implement behavior from more than one parent.
Question 70
Essay
When you create classes for others to use, why would you not want to provide the users with your source code in the files with .java extensions?
Question 71
Essay
The AnimalReference application shown above contains a generic Animal reference variable into which you can assign concrete Animal objects. Explain how this example uses polymorphism and why it is important.
Question 72
Essay
public interface FindTheError { void firstMethod(int anIntNum) { System.out.println("Did you find the error?"); } } What is the problem with the above interface? How would you correct the interface?