arjun srivastava wrote:please guys tell me how to invoke overloaded run() method?
1. add a constructor to your A class that takes a String as a parameter. Store the string in an instance variable.
2. Modify your A.run method to call your A.run(String) method passing the instance variable to it.
3. Change the first line of the main method to create an A object using the constructor that takes a String.