Optimize code, add appropriate access modifiers, employ theproper use of static and final keywords. Employ smallest primitivedata types needed. The program will accept user’s input in poundsand give user the choice of converting weight to pounds orkilograms on the given planetary body.
Build a class Weight_Pounds and Weight_Kilograms;Weight_Kilograms will extend Weight_Pounds.
Use constructors, parameters and arguments as needed. Use methodoverriding to implement methods in both classes. Use Setter andGetter methods.
Use a class constructor to initialize class values for weight to100. Program should let the user know the execution is with adefault value for the program. Output all the weight conversions inPounds and
PayPal Gateway not configured
PayPal Gateway not configured