2020년 4회 정보처리기사 실기 기출문제문제다음은 Java로 작성된 프로그램이다. 이를 실행한 출력 결과를 쓰시오.class Parent { public int compute(int num) { if (num 정답1해설1️⃣ 상속과 오버라이딩📌 상속 (Inheritance)Child 클래스는 Parent 클래스를 상속받습니다.상속받은 Child 클래스는 Parent 클래스의 메서드 compute를 재정의(오버라이딩)합니다.📌 오버라이딩 (Overriding)오버라이딩이란 부모 클래스의 메서드를 자식 클래스에서 동일한 이름과 매개변수로 재정의하는 것입니다.Parent 클래스의 compute 메서드는 다음과 같습니다:public int compute(int num) { if (n..