builds method signature for class declaration