I have an abstract class "title" and 2 classes that inherit from it: book and magazine. I would like to have a single db with a single id per book or magazine, (I think it's easier). So I created a "title" db with an enum for the 2 classes, but now I'm unsure how to implement that in java... I created an enum in title but I can't instantiate title since it's abstract... I'm kinda new to Java and programming. Thank you to those that will help.
#Building a library to borrow books, Abstract Class with 2 subClasses that extend that class but...
1 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @storm river! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.