Handling method declarations and definitions.