You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MyClass_ch16.java 374B

123456789101112131415161718
  1. public class MyClass_ch16
  2. {
  3. public void foo(int number, String name)
  4. {
  5. System.out.println("Inside foo (int, String) with args: " +
  6. number + ":" + name);
  7. }
  8. public static void main(String[] args)
  9. {
  10. // Create an instance of MyClass
  11. MyInterface_ch16 myObject = (MyInterface_ch16)new MyClass_ch16
  12. ();
  13. // Make the call to foo
  14. myObject.bar("Russ");
  15. }
  16. }