What is an abstract class, and why might it be useful in an inheritance hierarchy?

What will be an ideal response?


An abstract class is a class represents a partially defined concept in an inheritance hierarchy. Abstract
methods cannot be instantiated, but they can be extended. They are often useful because several classes may include common
functionality but may lack a fully defined parent concept. Abstract classes allow a programmer to implement the partially
defined parent concept as an abstract class which will include the common functionality of the child classes. An example of an
abstract concept in an inheritance hierarchy might be a Vehicle. Subclasses like Car, Boat and Airplane are more fully
defined, but they share common states and behaviors.

Computer Science & Information Technology

You might also like to view...

The __________ algorithm uses recursion to sort a list.

a. shell sort b. QuickSort c. binary sort d. red/black sort e. None of these

Computer Science & Information Technology

The ________ function looks up values in a table array arranged as horizontal rows

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which tool enables unauthorized downloading of phone books and call lists, and reading SMS messages via Bluetooth connection?

a. RedFang b. Bluesniff c. Btscanner d. BlueBug

Computer Science & Information Technology

State public disclosure laws apply to state records, but FOIA allows citizens to request copies of public documents created by federal agencies.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology