Write a Java class that extends the Progression class so that each value in the progression is the absolute value of the difference between the previous two values. You should include a default constructor that starts with 2 and 200 as the first two values and a parametric constructor that starts with a specified pair of numbers as the first two values.

icon
Related questions
Question
Write a Java class that extends the Progression class so that each value in the progression is the absolute value of the
difference between the previous two values. You should include a default constructor that starts with 2 and 200 as the
first two values and a parametric constructor that starts with a specified pair of numbers as the first two values.
Transcribed Image Text:Write a Java class that extends the Progression class so that each value in the progression is the absolute value of the difference between the previous two values. You should include a default constructor that starts with 2 and 200 as the first two values and a parametric constructor that starts with a specified pair of numbers as the first two values.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS