// Bug.java
// User-defined abstract superclass Bug
import java.awt.*;

public abstract class Bug {
        // instance variables
        private String bugName;  // biological name
        
        // constructor taking biological name
        public Bug( String name ) {
                bugName = name;
        }
        
        public String getBugName( ) {
                return new String( bugName );
        }
        
        abstract void crawl( );

        abstract void draw( Graphics g );
}