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

Employees' last names would usually make an appropriate primary-key field

Indicate whether the statement is true or false

Computer Science & Information Technology

The ROUND function requires how many arguments?

A) 4 B) 3 C) 1 D) 2

Computer Science & Information Technology