Computer Science 132
Introduction To Computing II
Dickinson College
Spring Semester 2001
Grant Braught
Class #10 - Scope and Overloading
Main Ideas For Today 
- Methods & Signatures
- Variable Scope
- Method Overloading
Reading Assignment For Today 
- Java by Dissection: Review Chapter 4, Sections 4.1-4.4, 4.6
Review Questions For Today 
Due Date: 6:00 am
- Java by Dissection: Chapter 4, Review Questions 5, 6, 11
Solutions - posted after due date.
Web Sites Related to Today's Topic 
-
Math Class
- The Java Math Class makes extensive use of method overloading to implement methods such as round(...), max(...), min(...), abs(...)that can operate on int, long, float and double data.
Sample Code For Today's Class 
- Rounding.java - Method overloading applied to the practical problem of rounding float and double numbers.
- ScopeTest.java - A program to demonstrate and test method calling, return, and variable scope.
- OverloadDemo.java - Another program that will test your knowlege of how method overloading works.
Lab Assigned Today 
Due Date: 2/21/00
- Lab #3 - "Let's Make a Deal"