Question: 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

Can somebody help me with this in java 1.Design a java interfacecalled IDedObject which has following abstract functions int getlD() void printID) //Returnsthe ID of the object //Prints the details of the ID 2.Design

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!