public void writeClassDefinition(String parent){
  out.print("public class " + className);
  if (parent != null) {
    out.print(" extends " + parent);
  }
  out.println(" {");
}

public void writeClassDefinition ( String parent ) { out . print ( "public class " + className ) ; if ( parent != null ) { out . print ( " extends " + parent ) ; } out . println ( " {" ) ; }
writes the class definition
