Question: C++ only 6. Create a class named Shirt that has the public data members collarsize and sleeveLength. Create a cls amed Pants that has the

C++ only
6. Create a class named Shirt that has the public data members collarsize and sleeveLength. Create a cls amed Pants that has the public data members waistSize and inSeam. Write a program that declares one object of each type Shirt and Pants and assigns values to the objects' data fields. Write two overloaded functions named displayClothing Facts0. One version of the function takes a Shirt object as an argument the other version takes a Pants object. Each version displays the facts about the piece of clothing. Your main) function should demonstrate that you can call display Clothing Facts0 with either type of clothing. Save the file as Shirt.cpp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
