Presentation is loading. Please wait.

Presentation is loading. Please wait.

Course: CSCI 207 Problem Solving and Programming Using Visual Basic® Lecture 23: OOD/OOP – Designing the next class in the drawing hierarchy Edinboro University.

Similar presentations


Presentation on theme: "Course: CSCI 207 Problem Solving and Programming Using Visual Basic® Lecture 23: OOD/OOP – Designing the next class in the drawing hierarchy Edinboro University."— Presentation transcript:

1 Course: CSCI 207 Problem Solving and Programming Using Visual Basic® Lecture 23: OOD/OOP – Designing the next class in the drawing hierarchy Edinboro University of PA. Distance and Online Learning Professor: Stanley T. Schuyler, D.Sc. CSCI 207 - Lecture 23S. T. Schuyler, D.Sc.1

2 Lecture 23 - Objectives Review and Revise the Data Hierarchy Diagram Develop the Class Test and Demonstrate Operation of the Class Move up the class hierarchy to the level – A drawing is an instance of a collection of – We want to establish this class – Add that may contain exactly 1 (so far – before we expand to line objects) – Be able to erase and redraw them CSCI 207 - Lecture 23S. T. Schuyler, D.Sc.2

3 DATA Decomposition for Drawing Application – V2 CSCI 207 - Module 43S. T. Schuyler, D.Sc.3 Drawing Surface,, …,,,

4 Module 45: Summary of Module 44 In the Last Module we: – Added the Class Pt and tested it will draw a digitized x,y pt – Added an “Erase” event What we didn’t do: – Is keep the points around (none stored) CSCI 207 - Module 44S. T. Schuyler, D.Sc.4

5 DATA Decomposition for Drawing Application – V2 CSCI 207 - Module 43S. T. Schuyler, D.Sc.5 Drawing Surface DrawingSet1,, …,,, PictureBox1 Single Instance of the Class Class Declaration Instance

6 DATA Decomposition for Drawing Application – V2 CSCI 207 - Module 43S. T. Schuyler, D.Sc.6 Drawing Surface DrawingSet1,, …,,, PictureBox1 Single Instance of the Class Class Declaration Instance

7 Module 45 Summary Composed the Class – Developed the AddGeometry() method – Developed the AddPoint() method – Developed the Draw() Method Instantiated a single Instance Demonstrated a User level Add Point Operation – Add, Draw – Erase – Redraw CSCI 207 - Module 45S. T. Schuyler, D.Sc.7


Download ppt "Course: CSCI 207 Problem Solving and Programming Using Visual Basic® Lecture 23: OOD/OOP – Designing the next class in the drawing hierarchy Edinboro University."

Similar presentations


Ads by Google