1. A computer implemented method for converting a source code in a first programming language to a code in a second programming language, the method comprising the steps of: preparing the source code in the first programming language; scanning the source code in the first programming language and adding a synthetic class having the same name as a suffix for name mangling of a normal method in the source code; adding a dummy parameter of the type of the synthetic class to a constructor definition; adding an appropriate value that matches the type of the dummy parameter to a constructor invocation; and generating a code in the second programming language converted based on a result of adding said dummy parameter and type matching values.