Do the following program in Java Eclipse.
Java Class that can be used to create a Fruit object as described below:
A fruit has - a:
- Date of Harvest
-Color
-Weight
-Number of seeds
a. Add all instance variables.
b. The class must have getters and setters for all instance variables.
c. The class must have two constructors, a no-args and a constructor that receives input for each instance variables.
d. The parent class is abstract.
e. its 1 abstract method and has toString() method
f. its 2 children (concrete) also have toString() methods.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here