Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Description You will be writing programs to manage collections of things where you get to choose the thing in the collection. Since you will

Problem Description
You will be writing programs to manage collections of "things" where you get to choose the "thing" in the collection. Since you will be reusing your "Thing" class across more than one program, please choose something that interests you.
Note: You can be creative about your thing. However, it is prohibited to use any of the following: book, point, line, circle, grocery item, student, person, bank account, menu item, car, pet, song
Thing Class
[2 points] Create a Thing class. The name is not Thing!!! The name is whatever your thing is. Your Thing class must have the following characteristics:
[3 points] Include at least 3 private instance variables (fields) such that: o the first instance variable must be of type String and this variable will be used as a search key
o the second instance variable must be integer (i.e., int) and this variable will be used to find aggregate information about Things that are stored in a collection class as will be explained later o the third variable must be of type boolean
[3 points] Implement a three-arguments constructor for your Thing class. The arguments must be in the order (String, int, boolean).
points
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions