04_07_2008_Recitation_Guide

04_07_2008_Recitation_Guide - Recitation Guide for April...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Recitation Guide for April 7th, 2008 I. Housing Keeping a. Homework 7 due Wednesday April 9 th b. Exam 2 in class Friday April 11 th c. Quiz 4 in class Friday April 18 th d. Quiz 3 solution posted to T-square. Grades and papers should be returned the latest on Wednesday. Two weeks from Wednesday for regrades. Regrades to Dawn. II. UML (Unified Modeling Language) a. Individual diagram Person -int dateOfBirth -String sex +eat() +work() +play() b. Specialization/Inheritance relationship Person -int dateOfBirth -String sex +eat() +work() +play() Doctor -degree -specialization +doDoctorStuff() Doctor is a subclass of Person. Therefore Doctor is a specialization of Person. Name of the class Instance variable, attributes or fields: What the class knows Methods or operations: What the instance knows how to do
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
c. Visiblity Visibility Table Mark Visibility + Public # Protected - Private d. Bi-directional relationship Flight -int flightNumber -Date departureTime -Minute flightDuration -String departingAirport -String arrivingAirport +delayFlight (Minute numberofMinutes) +getArrivalTime() A bi-directional association is indicated by a solid line (or a line ending in arrows on either side) between the two classes. At either end of the line, you place a role name
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

04_07_2008_Recitation_Guide - Recitation Guide for April...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online