Both Main application and Applet share from the Shared class