03_24_2008_Recitation_Guide

03_24_2008_Recitation_Guide - Recitation Guide for March...

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

View Full Document Right Arrow Icon
Recitation Guide for March 24th, 2008 I. Housing Keeping a. Homework 6 part 1 solution available on T^2 b. Homework 6 part 2 due March 28 th c. Homework 6 Demo Signups due March 28 th i. Signup page: http://coweb.cc.gatech.edu/cs1316/1050 ii. Rules available on T^2 d. Quiz 3 in class Wednesday April 2 nd e. Bonus Quiz Question solution available on T^2 II. Abstract Data Types (ADTs), abstract classes and interfaces a. See http://coweb.cc.gatech.edu/cs1316/uploads/336/Spring_2008_Abstract_Data_Structur es_%28ADTs%29_Stacks_and_Queues.pdf b. Interfaces i. Code template with just abstract methods, method headers with no method bodies ii. Uses keyword implements when it is used by another class 1. i.g. public class ButtonListener implements ActionListener iii. Any implementing class is forced to “give the abstract methods a body . iv. A good way to think about interfaces is to think of it as a set of rules (method headers) for let us say Georgia Tech club sports. Assume that one of the rules is that all Georgia Tech club teams must wear yellow tops and black bottoms, but the style (method body) of the clothes may differ with the purpose and goal of each sport. The ultimate team may wear yellow t-shirts and black shorts, while the club basketball team might wear yellow basketball jerseys and black basketball shorts. Both satisfy the requirements, but in different ways. c. Abstract classes i. Class containing regular methods and abstract methods ii. Uses keyword extends when it is used by another class 1. i.g. public class exampleClass extends exampleAbstractClass iii. Any extending class is forced to “give the abstract methods a body.” iv.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2010 for the course CS 1316 taught by Professor Staff during the Spring '08 term at Georgia Institute of Technology.

Page1 / 4

03_24_2008_Recitation_Guide - Recitation Guide for March...

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

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