Download presentation
Presentation is loading. Please wait.
Published byEvan Fox Modified over 9 years ago
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
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 wants to date
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 Woman wants to date
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. Man Woman wants to date * * * * ** * *
6
Man Woman wants to date * * Person
7
Man Woman wants to date * * Person WantsToDate
8
Man Woman Person WantsToDate 1 1 * * requestor target
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
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 OOP Procedural
14
1 chef 2 waiters 1 cashier 1 part time accountant 1 manager 1 cash register 1 stove
15
OOP 4 Abstraction Encapsulation Inheritance Polymorphism
16
Data function
17
Data function
18
Data function Data function Student Course Lecturer
19
Data function Data Student
20
Data function Data Student cs2103: Course damith: Lecturer john:
21
Student john:
22
Student NgStudent PgStudent UgStudent
23
{abstract} Student NgStudent PgStudent UgStudent
24
> Student NgStudent PgStudent UgStudent
25
:NgStudent :PgStudent :UgStudent :Lecturer study() foo() bar () goo ()
26
:NgStudent :PgStudent :UgStudent :Lecturer study() foo() bar () goo ()
27
:NgStudent :PgStudent :UgStudent :Lecturer study() foo() bar () goo ()
28
:Student :NgStudent :PgStudent :UgStudent :Lecturer
29
1 chef 2 waiters 1 cashier 1 part time accountant 1 manager 1 cash register 1 stove Divisions/Departments Kitchen Accounting Customer Services Purchasing OOPArchitecture
30
OOPArchitecture
31
OOPArchitecture
32
A B C D B C A Component A design * Component C design * D C Component B designComponent D design OOP Component design Architecture Achievement Unlocked! Top-down multi- level design
33
Achievement yet to be unlocked! Software Reuse Writing from scratch is better? Can you imagine trying to become a poet without reading poems written by other poets?
34
How to find good code to learn from? Open Source projects How to get in GSoC or good internships? From internships/job?
35
Achievement yet to be unlocked! Effort estimation Promise only what you can deliver, deliver what you promised.
36
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.