Presentation is loading. Please wait.

Presentation is loading. Please wait.

WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010.

Similar presentations


Presentation on theme: "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."— 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.here These slides contain a lot of animations. For optimal results, watch in slideshow mode.

2 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 Do this while we wait for the lecture to start

3 Man Woman Do this while we wait for the lecture to start

4 Man Woman wants to date

5 Man Woman wants to date

6 Man Woman wants to date * * * * ** * *

7 Man Woman wants to date * * * * ** * * Assume we are building an online dating app. It allows users to indicate which other users they want to date. The following class diagram shows the ‘wants to date’ associations. On with our lecture proper

8 Man Woman wants to date * * Person

9 Man Woman wants to date * * Person WantsToDate

10 Man Woman Person WantsToDate 1 1 * * requestor target

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

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

13 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 …… … …

14 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 …… … …

15 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 …… … … Boil water Put tea leaves in strainer Add hot water Steep for a while Remove strainer Add milk and sugar

16 1 chef 2 waiters 1 cashier 1 part time accountant 1 manager 1 cash register 1 stove

17 OOP 4 Abstraction Encapsulation Inheritance Polymorphism

18 Data function

19 Data function

20 Data function Data function Student Course Lecturer

21 Data function Data Student

22 Data function Data Student cs2103: Course damith: Lecturer john:

23 Student john:

24 Student NgStudent PgStudent UgStudent

25 {abstract} Student NgStudent PgStudent UgStudent

26 > Student NgStudent PgStudent UgStudent

27 :NgStudent :PgStudent :UgStudent :Lecturer study() foo() bar () goo ()

28 :NgStudent :PgStudent :UgStudent :Lecturer study() foo() bar () goo ()

29 :NgStudent :PgStudent :UgStudent :Lecturer study() foo() bar () goo ()

30 :Student :NgStudent :PgStudent :UgStudent :Lecturer

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

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

33

34 Advanced user Novice user

35


Download ppt "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."

Similar presentations


Ads by Google