CS210: Software Development • PA7.pdf – answers to the written questions. • StackInterface.java – generic interface for stacks. • ListStack.java – generic implementation of a stack backed by a linked list. • QueueInterface.java – generic interface for queues. • ListQueue.java – generic implementation of a queue back by a linked list. Overview Congrats! You have made it to the shortest PA of the semester. I spent some time trying to think of ways to make this PA harder, but then I realized, why do I need to make it artifically harder? If you learn how to use generics, that is the only goal of this assignment. So please spend some of the time you would normally devote to writing a larger assignment to a careful reviewing and understanding of the links posted on Piazza regarding generics and the lecture content on generics. The purpose of this assignment is to give you practice writing and implementing interfaces, and writing generic classes. The assignment consists of a written part answering questions and a coding part. You can do the written or the coding part first, it is up to you. Assignment Written 1. What is the purpose of generics? Why do we need them? 2. Why don’t we just use Object as the parameterized type for our generic classes? Then we could put absolutely any object into our list. i.e. When we made MyLinkedList generic, why don’t we always declare it like: MyLinkedList
The Codes Hive believes in helping students to write clean codes that are simple to read and easy to execute.Based in New York, United States, we provide assignment help, homework help, online tutoring and project help in programming to the students and professionals across the globe.
Disclaimer: The reference papers/tutorials provided are to be considered as model papers only and are not to submitted as it is. These papers are intended to be used for research and reference purposes only.
Why You Should Hire Codeshive Tutors
Guaranteed A or B Grade
Money back guarantee
Save Time
Achieve more in less time
24/7 Customer support
You're viewing: PA7 Generics and Interfaces solved$35.00