What are the benefits of inheritance and Object Oriented Programming?

What will be an ideal response?


The benefits are abstraction and code reuse: A general form of a class can be defined. It contains common features of the several specialized versions that may be defined and caused to inherit from the general form. This saves you the trouble of writing identical code two or more times.
Though the text does not say this explicitly, inheritance and OOP better enable modeling of problems within programs. The objects represent actors and the member functions represent behavior of the actors. The data members are information the actors must remember to carry out their prescribed behavior.

Computer Science & Information Technology

You might also like to view...

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

1. Appropriate use of icons on the screen allows contrast of foreground and background. 2. Highly contrasting colors should first be assigned to fields that must be differentiated, then other colors can be assigned. 3. Provide minimal or no instructions on a Web site, because it takes page space and people must know how to use their browser software. 4. A well-designed eCommerce Web site will make up for any other features that the site is lacking.

Computer Science & Information Technology

Kevin edits a digital photograph. If Kevin uses an image editing program for this purpose, the program will use the arithmetic/logic unit, with help from the _____ when needed, using only arithmetic and logical operations.

A. ?prefetch unit B. ?decode unit C. ?bus interface unit D. ?floating point unit

Computer Science & Information Technology

A server can perform a variety of functions or be assigned to a single task

Indicate whether the statement is true or false

Computer Science & Information Technology

Every byte of data transmitted with TCP must have a sequence number

Indicate whether the statement is true or false.

Computer Science & Information Technology