Week4 4.1 Flashcards
Major advantage of Divide and Rule?
Major advantage is that the presentation logic can be more readily seperated from the business logic(data access and manipulation)
What are the SOLID principles?
S- Single responsibility principle
an object should have only a single responsibility.
O- Open/Closed principle
software entites should be open for extension, but closed for modification
L- Liskov substitution principle
Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program
I- Interface segregation principle
Many client specific interfaces are better than one general purpose iterface
D- Dependency inversion principle
One should depend upon abstractions. Do not depend upon concretions
What are the 3 visibilitys of Attributes and methods:
Public
Protected
Private