Genericity collections of objects COSC 2006 Bags of Objects collections of objects for real programming applications, pratical collections are collections of objects example:…