Which of the following statements is not a general inheritance practice that you should keep in mind in the design of a program?

a) Derived classes should have an “is-a” relationship with the parent classes.
b) Use the final key word when defining parent classes.
c) Avoid shadowing inherited variables when possible.
d) Define abstract classes to specify a common class interface for concrete derived classes.
e) All of these are general inheritance practices that should be considered when designing a program.


b) Use the final key word when defining parent classes.

Computer Science & Information Technology

You might also like to view...

The Snap feature automatically resizes windows when you drag them to the edge of the screen

Indicate whether the statement is true or false

Computer Science & Information Technology

If a VBA error occurs while Access is running a procedure, you are offered the choice of ending the procedure or entering debugging mode. Choosing to end the procedure opens the Visual Basic Editor with the incorrect line of code highlighted in yellow

Indicate whether the statement is true or false

Computer Science & Information Technology

A set of declarations grouped under one selector is called a declaration block

Indicate whether the statement is true or false

Computer Science & Information Technology

Which two databases are supported for the vCenter Server Appliance 6.x? (Choose two.)

A. PostgreSQL B. Oracle C. DB2 D. Microsoft SQL Server

Computer Science & Information Technology