Available calls and selected behaviour

A dashboard uses the Java classes below, followed by the client declaration inside a method. Which statements about permitted calls and runtime behaviour are true? Select all that apply.


Java
class Report {
    String render() {
        return "report";
    }
}

class Chart extends Report {
    String render() {
        return "chart";
    }

    void zoom() {
    }
}


Java
Report report = new Chart();
Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Polymorphism Questions: