Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can somebody help me with this in java 1.Design a java interface called IDedObject which has following abstract functions int getlD() void printID) //Returns the

Can somebody help me with this in java

image text in transcribedimage text in transcribedimage text in transcribed

1.Design a java interface called IDedObject which has following abstract functions int getlD() void printID) //Returns the ID of the object //Prints the details of the ID 2.Design a java class Magazine that implements IDedObject interface and has the following class variables: int magazineID String magazineName String publisherName Implement suitable constructors, a printID function that prints all the variable values in separate lines and getID() function that returns the magazinelD. Add any access and other functions necessary Note all your data should be private and methods public inside the class) 3. Design a generic singly linked list java class (Give an appropriate name) to hold objects of the generic type . This AnyType should extend IDedObject. The linked list class must implement following member functions: A constructor which generates an empty list void makeEmpty AnyType findID(int ID); //empties the linked list // Get the generic type to get the particular id and returns AnyType. Don't remove the object from the list returns null if the list is empty or ID not found boolean insertAtFront(x insert at front of list or return false if that ID already exists // delete and return the record at the front of the list or return null if the list is empty AnyType deleteFromFront()

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

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions