I'm currently working on an assignment for an application development course, and I'm still a bit confused on abstract classes and how different relationships work in Java. What I understand so far is that an abstract class is used to store information that can be accessed by other classes, but is not instantiated (am probably butchering my terminology).
Below is an example of an abstract class I've made for an assignment, and I am unsure of how to approach creating classes which will have IS-A relationships. In the chat inside of this post, I'll send the block of code, which is an abstract item class for a program which acts as a POS tool for an imaginary restaurant. In this case, I'll need to create specialized classes for food and beverages.
Grateful if anyone can give me some guidance on how to approach this (Not looking for someone to give me the answer, I'd like to actually learn this.)
I have also attached some guidlines for this in case it provides any extra insight.
I will send the code after this is posted as I am breaking the 2,000 character limit and unfortunately do nt have nitro.