Class OverloadedMethodsExample

java.lang.Object
samples.overloading.OverloadedMethodsExample

public class OverloadedMethodsExample extends Object
  • Constructor Details

    • OverloadedMethodsExample

      public OverloadedMethodsExample()
  • Method Details

    • overloadedMethodWithOneArgument

      public static void overloadedMethodWithOneArgument(Parent parent)
    • overloadedMethodWithOneArgument

      public static void overloadedMethodWithOneArgument(ChildA child)
    • overloadedMethodWithTwoArguments

      public static void overloadedMethodWithTwoArguments(Parent parent, ChildA child)
    • overloadedMethodWithTwoArguments

      public static void overloadedMethodWithTwoArguments(Parent parent1, Parent parent2)