You can override any method of a parent class, using the code generation facility. PyCharm creates a stub that contains a call to the method of the superclass, leaving the developer with the task of providing some meaningful source code.

File template responsible for overriding a method (Overridden method body) accepts predefined template variables from "File Header" (File | Settings - IDE Settings - File Templates - Code - File Header), e.g. ${USER}, ${DATE}, etc.

For example, consider the following file template:

#if ( $RETURN_TYPE != "void" )return $DEFAULT_RETURN_VALUE;#end  // TODO ($USER, $DATE):To change the body of an implemented method, use File | Settings | File Templates.
              

Provided that an overridden class contains two methods, this template expands into the following code:

public void breathe() {
// TODO (mio, 9/21/12): To change body of implemented methods use File | Settings | File Templates.
           }
public void eat() {
// TODO (mio, 9/21/12): To change body of implemented methods use File | Settings | File Templates.
                  }
              

See Also

Reference:

Web Resources: