tuesday nov 6 lecture 16 - york universityjackie/teaching/lectures/2018/f/eecs33… · tuesday nov....

9
Tuesday Nov . 6 Lecture 16

Upload: others

Post on 15-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

Tuesday Nov.

6

Lecture 16

Page 2: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

- Exam : Sunday Dec.

9 7pm

- Midterm results available this Thursday

- Lab 3 Cprogramming

) marks availableearly Friday

- Project releasedby next Wed

.

( 3 weeks )

Page 3: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

Design of a Language Application . Open -Closed Principle

Structure

÷:÷÷÷.

Operations :

a⇒Operations

Structure Operationsprint - prefix Atl open closed

IT

,Lthee¥fxgene - JW

"°dlAtzdosedope

Page 4: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

YishaiDesign Pattern : Architecture

addz.ae#234 t

' '

a"

⑦vake:Iw- a

-⇒s¥⇒e⇒÷::c.a¥÷¥÷÷÷e

.

How to Ose Visitors

3oz . accepter , → 2'

tow " " p*ri⇒d.

Page 5: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

Visitor Design Pattern : Implementation

I B

Visualizing Line 4 to Line 7 It 2

Page 6: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

Executing Composite

add. .

!Ig.pl?::gnsatRm-Y::.glda*ea#i$h7edfadder↳ Y PT of add is

AaHT-

'

¥!"

:d " 2nd dispatch calls "

rise . gold

-

a f's:a%¥÷¥÷: -

.

- ⇒⇐" ".ms#ie@-⇒¥#[email protected]=⇒→

arise

Page 7: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

Visitor Pattern : Open - Closed and Single ChoicePrinciplesClosed Open

\ ,

it

visit - mul visit- and WSH

- matIAddangaageM→" da

+¥Ppa.co.id/A#anwanpeaon?-ssafedsepQsed

few -

ASSEMBLY ⇒ thy part can be

open

Page 8: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

Void Safe a Java ? a )

EEEIs-

# Pc points

Page 9: Tuesday Nov 6 Lecture 16 - York Universityjackie/teaching/lectures/2018/F/EECS33… · Tuesday Nov. 6 Lecture 16-Exam: Sunday Dec. 9 7pm-Midterm results available this Thursday-Lab

Void Safe a Java ? a )

TOFE?n¥,←#oKull