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...

The break-up of the bell system was known as

a. equal access b. point-of-presence c. a LATA d. divestiture

Computer Science & Information Technology

When using the Step-by-Step Mail Merge Wizard, it is impossible to move to a previous step in the wizard.

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

Computer Science & Information Technology

 _____________ programmers create productivity software such as Microsoft Office, as well as enterprise applications such as CRM and ERP.

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

Computer Science & Information Technology

The contents of ________ memory are erased when the computer is turned off

Fill in the blank(s) with correct word

Computer Science & Information Technology