Reusability

来源:互联网 发布:凤凰金融 网络陕西 编辑:程序博客网 时间:2024/05/17 07:34

A principal goal of object-oriented programming is to make the code you write as reusable as possible—to have it serve many different situations and applications—so that you can avoid reimplementing, even if only slightly differently, something that’s already been done.

Reusability is influenced by a variety of different factors, including:

      How reliable and bug-free the code is
      How clear the documentation is
      How simple and straightforward the programming interface is
      How efficiently the code performs its tasks
      How full the feature set is.

原创粉丝点击