Table of Contents
CSC 171 – SPRING 1999
OVERVIEW OF LECTURE 4
Administration
Applications vs. Applets
An example application
Example
main()
Methods
Method definition
Using square
Using square
Method overloading
Automatic Variables
Scope Rules
Recursion
Recursive Example : factorial
Recursive Example : factorial
Predefined Applet Methods
Arrays
Simple (1D) arrayint C[] = {-45, 6, 0, 72, 1543 };
Getting Arrays - simple
Getting Arrays – 2D
This week’s lab
|
Author: Thaddeus F. Pawlicki
|