Question: Question 3 Generic Types and Polymorphism (a) Define a Set-E> interface type that can handle elements of a generic type E. Consider operations on set

Question 3 Generic Types and Polymorphism (a) Define a Set-E> interface type that can handle elements of a generic type E. Consider operations on set membership (adding and removing elements, testing membership), and basic operations on sets (union, intersection, subset). Include an equals method for sets. (b) Define a class realizing the Set
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
