/*
 * Copyright 2017 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package packageprivatemethods.package1;

public class Child extends Parent implements Interface {
  // This directly exposes Parent.overrideInParentExposedInChild, there should be one and only one
  // dispatch method here.
  @Override
  public int overrideInParentExposedInChild(int a) {
    return a + 1;
  }

  // This directly exposes SuperParent.exposedInChild, there should be a dispatch method here.
  @Override
  public int exposedInChild(int a, int b) {
    return a + b + 1;
  }

  // This directly exposes SuperParent.exposedInChildWithInterface and implements it from interface,
  // there should be a dispatch method here.
  @Override
  public int exposedInChildWithInterface(int a, int b) {
    return a + b + 1;
  }

  // This does not directly expose any methods.
  @Override
  public int exposedAbstractInParent(int a, int b, int c) {
    return a + b + c + 2;
  }
}
