Subj : [Q] Rhino. How to implement host objects having overloading functions? To : netscape.public.mozilla.jseng From : "±è¿øÈ£" Date : Mon Jun 30 2003 07:53 pm I have to make a host object that provides two overloading functions. For example, I want to implement following two functions. public class Me { public void f(String s); public void f(String s, Integer n); } After implementing two functions, I execute this statement in javascript. me = new Me(); me.f('hi', 100); But, the first version of f() is called which is different from my expectaion. How can I provide host objects having overloaded functions? If there is no way to that, I have to use 'instance of' in one function. .