/* Rafay Ahmad 23I-2526 */ #include using namespace std; class IceCream{ char *flavor; char *topping; char *servingType; bool isReady; double price; public: IceCream(){} IceCream(char *flavor, char *topping, char *servingType, double price) : flavor(flavor), topping(topping), servingType(servingType), price(price), isReady(false){ int length = 0; while(flavor[length] != '\0') length++; this->flavor = new char[length]; for(int i=0;iflavor[i] = flavor[i]; this->flavor[length] = '\0'; length = 0; while(topping[length] != '\0') length++; for(int i=0;itopping[i] = topping[i]; this->topping[length] = '\0'; length = 0; while(servingType[length] != '\0') length++; for(int i=0;iservingType[i] = servingType[i]; this->servingType[length] = '\0'; } IceCream(char *topping, double price) : flavor(nullptr), topping(topping), servingType(nullptr), isReady(false), price(price){} IceCream(const IceCream &iceCream) : isReady(iceCream.isReady), price(iceCream.price){ int length = 0; while(iceCream.flavor[length] != '\0') length++; flavor = new char[length]; for(int i=0;i