1 / 32

WARNING

WARNING. These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions . You can download PowerPoint 2010 viewer from here .

jess
Download Presentation

WARNING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WARNING • These slides are not optimized for printing or exam preparation. These are for lecture delivery only. • These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions. You can download PowerPoint 2010 viewer from here. • These slides contain a lot of animations. For optimal results, watch in slideshow mode.

  2. Do this while we wait for the lecture to start Assume we are building an online dating app. It allows users to indicate which other users they want to date. Complete the following partial class diagram to show the ‘wants to date’ associations. Man Woman

  3. Assume we are building an online dating app. It allows users to indicate which other users they want to date. Complete the following partial class diagram to show the ‘wants to date’ associations. Man wants to date Woman

  4. Assume we are building an online dating app. It allows users to indicate which other users they want to date. Complete the following partial class diagram to show the ‘wants to date’ associations. Man wants to date Woman

  5. Assume we are building an online dating app. It allows users to indicate which other users they want to date. Complete the following partial class diagram to show the ‘wants to date’ associations. wants to date wants to date * * * * Man wants to date Woman * * * * wants to date

  6. wants to date * Person * Man Woman

  7. wants to date * Person WantsToDate * Man Woman

  8. 1 * Person WantsToDate target requestor 1 * Man Woman

  9. Boil water • Put tea leaves in strainer • Add hot water • Steep for a while • Remove strainer • Add milk and sugar

  10. Boil water • Put tea leaves in strainer • Add hot water • Steep for a while • Remove strainer • Add milk and sugar

  11. Boil water • Put tea leaves in strainer • Add hot water • Steep for a while • Remove strainer • Add milk and sugar • Serve tea • Clean table • Toast bread • Cut bread • Accept payment • Give change • Issue receipt • Wash utensils • Pay bills • Order supplies • …… … …

  12. Boil water • Put tea leaves in strainer • Add hot water • Steep for a while • Remove strainer • Add milk and sugar • Serve tea • Clean table • Toast bread • Cut bread • Accept payment • Give change • Issue receipt • Wash utensils • Pay bills • Order supplies • …… … …

  13. Boil water • Put tea leaves in strainer • Add hot water • Steep for a while • Remove strainer • Add milk and sugar • 1 chef • 2 waiters • 1 cashier • 1 part time accountant • 1 manager • 1 cash register • 1 stove • Serve tea • Clean table • Toast bread • Cut bread • Accept payment • Give change • Issue receipt • Wash utensils • Pay bills • Order supplies • …… … …

  14. 4 OOP Abstraction Encapsulation Inheritance Polymorphism

  15. function function Data Data function Data Data function Data Data function Data function Data

  16. function function Data Data function Data Data function Data Data function Data function Data

  17. Student function function Data Data Course Data function Data Data function Data Data function function Data Lecturer

  18. Student function function Data Data

  19. john: Student function function Data Data cs2103: Course damith: Lecturer

  20. john: Student

  21. Student NgStudent PgStudent UgStudent

  22. {abstract} Student NgStudent PgStudent UgStudent

  23. <<interface>> Student NgStudent PgStudent UgStudent

  24. :Lecturer :NgStudent :PgStudent :UgStudent study() foo() study() bar () study() goo ()

  25. :Lecturer :NgStudent :PgStudent :UgStudent study() foo() study() bar () study() goo ()

  26. :Lecturer :NgStudent :PgStudent :UgStudent study() foo() study() bar () study() goo ()

  27. :Lecturer :Student :NgStudent :PgStudent :UgStudent

  28. L1-L6 • Basic SE knowledge [up to B+] • Theory covered •  Practice in project  internalize L7-L12 • Intermediate SE knowledge [A- to A+] • Today • Better design • Better code • Better documentation

  29. Image credit: http://uxmag.com/articles/the-dirtiest-word-in-ux-complexity

  30. Image credit: http://uxmag.com/articles/the-dirtiest-word-in-ux-complexity

  31. Advanced user Novice user

More Related