Method Definition : Example
Write a method that computes and returns the perimeter of a rectangle class.
Analysis:
Send to the method: Length and Width
Compute inside the method: Perimeter
Return from the method: Perimeter
Previous slide
Next slide
Back to first slide
View graphic version