Explain what it means for a child class to override a method in a parent class. Why might this be useful?

What will be an ideal response?


A child class overrides a method that is inherited from a parent class by redefining it in the subclass. This is
useful because a subclass may have a slightly different behavior than the superclass, but the behavior still has the same name.
Overriding methods allows for this flexibility.

Computer Science & Information Technology

You might also like to view...

Two vertices A and B of a graph are adjacent if:

A. they are drawn next to each other B. you can follow a connection between A and B, so that you can reach B from A. C. A is next to B in the adjacency matrix D. A is next to B in the adjacency list

Computer Science & Information Technology

The ____ option of the Lasso Tool selects objects in straight lines.

A. Magic Wand Settings B. Magic Wand C. Polygon Mode D. Smooth

Computer Science & Information Technology

The ________ pane next to a SmartArt graphic is where the content is entered that appears on the shapes used in the graphic

A) Content B) Text C) Smart D) Bullet

Computer Science & Information Technology

Because it is common for Web designers to want different tables on their Web pages to have different attributes, this is a perfect opportunity to make use of style ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology