Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
QUALITY. PRODUCTIVITY. INNOVATION.

Object Oriented
Analysis and Design
Give your software a 30minute workout

endava.com
Give your software a
30-minute workout
Flexible software

2

Benefits of analysis
Design decisions
Flexible applications
C...
3

3

QUALITY. PRODUCTIVITY. INNOVATION.
We should use only one search method, using InstrumentSpec

4

4
5

5
public class Inventory {
private final List<Instrument> inventory;
public Inventory() {
inventory = new LinkedList<>();
}
...
7

7

QUALITY. PRODUCTIVITY. INNOVATION.
8

8

QUALITY. PRODUCTIVITY. INNOVATION.
9

9

QUALITY. PRODUCTIVITY. INNOVATION.
10

10

QUALITY. PRODUCTIVITY. INNOVATION.
11

11

QUALITY. PRODUCTIVITY. INNOVATION.
12

12

QUALITY. PRODUCTIVITY. INNOVATION.
13

13

QUALITY. PRODUCTIVITY. INNOVATION.
14

14

QUALITY. PRODUCTIVITY. INNOVATION.
15

15

QUALITY. PRODUCTIVITY. INNOVATION.
16

16

QUALITY. PRODUCTIVITY. INNOVATION.
The great ease-of-change challenge

17

17

QUALITY. PRODUCTIVITY. INNOVATION.
18

18

QUALITY. PRODUCTIVITY. INNOVATION.
19

19

QUALITY. PRODUCTIVITY. INNOVATION.
20

20

QUALITY. PRODUCTIVITY. INNOVATION.
21

21

QUALITY. PRODUCTIVITY. INNOVATION.
Secrieru Radu
Junior Developer

QUALITY. PRODUCTIVITY. INNOVATION.
Nächste SlideShare
Wird geladen in …5
×

Object oriented analysis and design flexible software

457 Aufrufe

Veröffentlicht am

Veröffentlicht in: Technologie, Business
  • Login to see the comments

  • Gehören Sie zu den Ersten, denen das gefällt!

Object oriented analysis and design flexible software

  1. 1. QUALITY. PRODUCTIVITY. INNOVATION. Object Oriented Analysis and Design Give your software a 30minute workout endava.com
  2. 2. Give your software a 30-minute workout Flexible software 2 Benefits of analysis Design decisions Flexible applications Cohesion OOA&D Toolbox QUALITY. PRODUCTIVITY. INNOVATION.
  3. 3. 3 3 QUALITY. PRODUCTIVITY. INNOVATION.
  4. 4. We should use only one search method, using InstrumentSpec 4 4
  5. 5. 5 5
  6. 6. public class Inventory { private final List<Instrument> inventory; public Inventory() { inventory = new LinkedList<>(); } public void addInstrument(String serialNumber, double price, InstrumentSpec spec) { Instrument instrument = null; if (spec instanceof GuitarSpec) { instrument = new Guitar(serialNumber, price, (GuitarSpec) spec); } else if (spec instanceof MandolinSpec) { instrument = new Mandolin(serialNumber, price, (MandolinSpec) spec); } inventory.add(instrument); } 6 public Instrument get(String serialNumber) { for (Instrument instrument : inventory) { if (instrument.getSerialNumber().equals(serialNumber)) { return instrument; } } return null; } public List<Instrument> search(InstrumentSpec searchSpec) { List<Instrument> matchingInstruments = new LinkedList<>(); for (Instrument instrument : inventory) { if (instrument.getSpec().matches(searchSpec)) { matchingInstruments.add(instrument); } } return matchingInstruments; } 6 }
  7. 7. 7 7 QUALITY. PRODUCTIVITY. INNOVATION.
  8. 8. 8 8 QUALITY. PRODUCTIVITY. INNOVATION.
  9. 9. 9 9 QUALITY. PRODUCTIVITY. INNOVATION.
  10. 10. 10 10 QUALITY. PRODUCTIVITY. INNOVATION.
  11. 11. 11 11 QUALITY. PRODUCTIVITY. INNOVATION.
  12. 12. 12 12 QUALITY. PRODUCTIVITY. INNOVATION.
  13. 13. 13 13 QUALITY. PRODUCTIVITY. INNOVATION.
  14. 14. 14 14 QUALITY. PRODUCTIVITY. INNOVATION.
  15. 15. 15 15 QUALITY. PRODUCTIVITY. INNOVATION.
  16. 16. 16 16 QUALITY. PRODUCTIVITY. INNOVATION.
  17. 17. The great ease-of-change challenge 17 17 QUALITY. PRODUCTIVITY. INNOVATION.
  18. 18. 18 18 QUALITY. PRODUCTIVITY. INNOVATION.
  19. 19. 19 19 QUALITY. PRODUCTIVITY. INNOVATION.
  20. 20. 20 20 QUALITY. PRODUCTIVITY. INNOVATION.
  21. 21. 21 21 QUALITY. PRODUCTIVITY. INNOVATION.
  22. 22. Secrieru Radu Junior Developer QUALITY. PRODUCTIVITY. INNOVATION.

×