Write a function named difference for the set class that


Problem

Write a function named difference for the Set class that returns the difference between two sets. The function should return a pointer to a new set that has items from the first set that are not in the second set. For example, if contains {1, 2, 3, 4} and setB contains {2, 4, 5} then setA.difference(setB) should return the set {1, 3}.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function named difference for the set class that
Reference No:- TGS02745615

Expected delivery within 24 Hours