125x125 Ads4

Characteristics of the Object-Oriented Approach

by aviator
As discussed earlier, and object has astate, behaviorm and identity, An object is reusable Therefore, and object exists as a stand- alone entity that can be used in any relevant context For example, if you have a chair, you can use the same chair in an office, in a classroom, or in a gardemn

And existing object can be used to create a smiliar object, For example you have a simple wooden chair and you need to add a headrest to it, You do not need to create  new chair beacuse you can easily add a headrest to the existing chair, This is known as resilence to change.

Realistic Modeling:

Because you live in a world of objects, it logically follows that the object-oriented approach models the real world more accurately. The object-oriented approach allows you to identify entities as objects having attributes and behavior, Attributes and behavior typically depict how the object acts and reacts, For example, the car is an object belonging to the class Vehicle, The car has attributes such as speed, color, and power, It displays behavor such as being stationary, mving slowly, or accelerating.

Reusability:

In the software industry, using existing classes or objects forom tother applicaitons saves resources spent tin recreating the classes from scratch., Consider the following analogy:

Carcare is a leading car manufacturing compnay, Carcare manufactures two-seater cars that are very popluar among the consumers aged between 20 and 24. The company has decided to enter the market of family segment market and has decided to manufacture a four-seater model.

Carcare can either design a new car for the family segment or convert the two-seater model to a four-seater model The cost involved in designing a new model is very high as compared tot he cost involved in converting the two-seater model to a four-seater model.
Posted in |