Cs 2340 Final Exam Review Summer 2006 Final

  • Slides: 12
Download presentation
Cs 2340: Final Exam Review Summer 2006 Final Exam Review 1

Cs 2340: Final Exam Review Summer 2006 Final Exam Review 1

Outline • Class Review • The Final Exam • CRC Cards / UML Class

Outline • Class Review • The Final Exam • CRC Cards / UML Class Diagram Example Final Exam Review 2

Class Review: Primary Learning Goals • OO Analysis with CRC Cards • OO Programming

Class Review: Primary Learning Goals • OO Analysis with CRC Cards • OO Programming – Good OO Code: “Objects do the work. The work is done in instance methods in the appropriate class. Good objects have clear responsibilities and clear interfaces. ” – OO Language Properties: Message Passing, Instance / Class, etc. • User Interfaces Final Exam Review 3

Class Review: Secondary Learning Goals • (Not Quite as Important) – Teamwork – Extreme

Class Review: Secondary Learning Goals • (Not Quite as Important) – Teamwork – Extreme Programming – Design Patterns & Frameworks – Virtual Machines & Garbage Collection – History of OO Final Exam Review 4

Final Exam • Monday, July 31 st, 11: 30 am • Duration – 120

Final Exam • Monday, July 31 st, 11: 30 am • Duration – 120 minutes – This exam should only be a little bit more time consuming than the midterm, so you shouldn’t be rushed. Final Exam Review 5

Content Coverage • Anything taught in the course is fair game to be on

Content Coverage • Anything taught in the course is fair game to be on the final, but there will be a heavy emphasis on things taught since the midterm. • Exception: – There will be a programming question similar to the midterm question. – There will be a CRC cards question. Final Exam Review 6

How do I Study? • The Co. Web Exam Review – Those are questions

How do I Study? • The Co. Web Exam Review – Those are questions from previous exams, so they are a good indication of both the content and the style of questions. – Don’t wait until the 11 th hour. Although the server has been pretty stable this summer, don’t count on it being up at 5 am on the day of the final. • Review the Important Topics Final Exam Review 7

Topics Since the Midterm • Design Patterns / Frameworks • UML (Unified Modeling Language)

Topics Since the Midterm • Design Patterns / Frameworks • UML (Unified Modeling Language) • HCI / Usability • Virtual Machines / Garbage Collection • Extreme Programming • Responsibility-Driven Design • Comparison of OO Languages • History of OO Programming / Squeakers Video Final Exam Review 8

CRC / UML Exercise: Ticketmaster • Using CRC Cards, do an OO analysis for

CRC / UML Exercise: Ticketmaster • Using CRC Cards, do an OO analysis for a ticketing system – A customer can buy ticket(s) for a specific seat in a specific venue on a given date and time. If possible, multiple tickets should be allocated in the same space. – The owner of the venue should be able to offer new shows at that venue through the ticketing system and determine the cost of any ticket sold. The venue also needs to be able to figure out who is sitting in what seat. Finally, the owner of the venue(s) should be able to collect the money from the ticketing system. • Create the UML Class Diagram – UML also includes visual components (if necessary) Final Exam Review 9

OOA Step 1 Brainstorming Candidate Classes • Write down all the objects that relate

OOA Step 1 Brainstorming Candidate Classes • Write down all the objects that relate – Focus on the nouns (objects are nouns) – Good objects have attributes and services • Now, filter the candidates – Deal with the interface later (Not part of the domain) – Are some candidates attributes of others? – Are some subclasses of others? – Are some instances of others? Final Exam Review 10

OOA Steps 2 & 3 • Step 2: Create CRC Cards for Each Class

OOA Steps 2 & 3 • Step 2: Create CRC Cards for Each Class • Step 3: Scenarios – Create scenarios based on the problem – Use scenarios to assign responsibilities and collaborators • Make sure your analysis can do everything defined in the problem. – (to ensure getting maximum credit) Final Exam Review 11

Converting CRC Cards to UML • Do 2 Diagrams – One shows the relationships

Converting CRC Cards to UML • Do 2 Diagrams – One shows the relationships (is. A, has. A) between classes. – One shows attributes and services for the classes. • Why? – It’s easier and faster. Final Exam Review 12