Which applet methods must I write?
Since an applet extends javacard.framework.Applet, it does inherit some methods, like select() and deselect(). The only methods which must be defined in your applets are install() and process().
If your applet implements object sharing, it must also implement getShareableInterfaceObject(). See Java Card:Security:Object Sharing for more information.