Question: Java help, please!! I ' m very confused by these questions and how to think about them. Can you please explain in simple terms for
Java help, please!!
Im very confused by these questions and how to think about them. Can you please explain in simple terms for each question why an abstract class couldwouldnt work?
PARTICIPATION
ACTIVITY
: Abstract classes.
Consider a program that catalogs the types of trees in a forest. Each tree object contains the tree's species type, age, and location. This program will benefit from an abstract class to represent the trees.
True
False
Consider a program that catalogs the types of trees in a forest. Each tree object contains the tree's species type, age, location, and estimated size based on age. Each species uses a different formula to estimate size based on age. This program will benefit from an abstract class.
True
False
Consider a program that maintains a grocery list. Each item, like eggs, has an associated price and weight. Each item belongs to a category like produce, meat, or cereal, where each category has additional features, such as meat having a "sell by date. This program will benefit from an abstract class.
True
False
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
