public void setSuperclass ( Class superclass ) { if ( superclass != null && superclass . equals ( Object . class ) ) { superclass = null ; } this . superclass = superclass ; }
Set the class which the generated class will extend . The class must not be declared as final and must have a non - private no - argument constructor .