A Java Model of a Memory Raster

    We begin with some boilerplate...

    • Indicates that we will use some of the classes (objects) in these packages
    • Corresponds to a directory structure
    • Directory hierarchies might be zipped up
    
    	import java.awt.*;
    	import java.awt.image.*;
    	
    	class Raster {
    	    public int width, height;
    	    public int pixel[];
    	
    • Define a new class (extends Object by default)
    • Declare instance variables
    • Permissions (public, protected, private, private protected, default)
      see Flanagan pg. 73

    Here is the source for the Raster object
Lecture 2 Slide 19 6.837 Fall '98