Introduction to Sets
Introduction to SetsA set is well defined class or collection of objects. A set is often described in the following two ways. Roster method or Listing method: In this method a set is described by listing elements, separated by commas, within braces { }.…