Question
Write a class named Gnomic, a child class of the Parent class below Do not alter the Parent class in any way (except adding a
Write a class named Gnomic, a child class of the Parent class below Do not alter the Parent class in any way (except adding a package statement.) The details of the the implementation of the abstract methods is not important; it just needs to compile. Write a class named TestGnomic that creates a Gnomic object. The TestGnomic class should use the Gnomic object to call the methods zoochory, vacive, yetling, and collatz and print the values returned by the vacive, yetling, and collatz methods.
public abstract class Parent { protected int enthymeme; protected String unberufen; protected double quinsell; public Larrigan(int enthymeme, String unberufen, double quinsell){ this.enthymeme = enthymeme; this.unberufen = unberufen; this.quinsell = quinsell; } public abstract void zoochory(double muniment); public abstract double vacive(); public abstract String yetling(String xography, int lavaliere); public int collatz(int expiate) { return expiate % 2 == 0 ? expiate / 2 : 3 * expiate + 1; } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started