Dikutip dari blog Livrona yang bertajuk 10 Object Oriented Design Principles , supaya tetap ingat, gw paparkan lagi di postingan kali ini .
10 Object Oriented Design Principles
Open Closed Principle
Classes should be open for extension but closed for modification.
Single Responbility Principle
A class should have onle one reason for change.
Dependency Inversion Principle
Abstractions should not depend on details. Details should depend on abstraction.
Release Reuse Equivalency Principle
The granule of reuse is the same as the granule of reuse. Only components that are released through a tracking system can be efectively reuse.
Stable Abstraction Principle
The more stable a class category is, the more it must consist of abstract classes. A completely stable category should consist of nothing but abstract classes.
Common Closure Principle
The classes in a package should be closed together against the same kinds of changes. A change that affects a closed package affects all the classes in that package and no other packages. Classes that change together, belong together.
Acyclic Dependencies Principle
The dependency structure for released components must be a directed acyclic graph. Allow no cyles in the dependency graph.
Stable Dependency Principle
Dependencies between released categories must run in the direction of stability. The dependee must be more stable than the depender.
Interface Segregation Principle
Interfaces belong to clients, not to hierarchies as such client spesific interfaces are better than one general purpose interface.
Common Reuse Principle
The classes in a package are reused together. If you reuse one of the classes in a package, you reuse them all. Classes that aren’t reused together should not be grouped together.
Liskov Substitution Principle
Subtypes must be substituable for their base types. Derived classes must be usable through the base class interface without the need for the user to know the difference.
Sumber :
http://www.livrona.com/blog/programming/10-object-oriented-design-principles
Catatan :
Sebelumnya udah nerjemahin sich, tapi pas dibaca lagi hasil terjemahannya, malah gw yang bingung ! . Back to original ! (^0^)/
Tulisan berikutnya akan gw paparkan penjelasannya satu per satu sesuai dengan pengetahuan dan pengalaman. Dan sebagian besar pendapat subjektif …
![]()
Btw, benerin ga ini ada 10 prinsip ????


aku binguuuung…..
Sama, bi. Tapi ditumpuk aja dulu .. Biar tambah bingung ..