Write a Java program to demonstrate method overriding. You can use a parent class and a child class. Once done, explain how overriding works and answer the following:
Given an array of positive integers arr and a target integer target, determine how many combinations of elements from arr (with repetition allowed) sum up to target. For example, if arr = {1, 2, 3} and target = 5, valid combinations include [1,1,1,1,1], [1,1,3], [2,3], [1,2,2], etc. Return the total number of such combinations.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?