Week4 4.1 Flashcards

1
Q

Major advantage of Divide and Rule?

A

Major advantage is that the presentation logic can be more readily seperated from the business logic(data access and manipulation)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the SOLID principles?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 visibilitys of Attributes and methods:

A

Public
Protected
Private

How well did you know this?
1
Not at all
2
3
4
5
Perfectly