Sunday, December 27, 2009

Explain how object-oriented design allows changes to be made?

Explain how object-oriented design allows changes to be made in a class definition without affecting other classes in the application.Explain how object-oriented design allows changes to be made?
the question is a bit vague but anyhow this is sometimes performed using Interfaces. An interface is only an access gate for other objects so when changes occur in the object implementing the interface the interface itself remains untouched and other classes would not change. However, sometimes cascade of change is not avoidable.

No comments:

Post a Comment