Question: Define two classes smiley and Frowny, which are both derived from class Circle and have two eyes and a mouth. Next, derive classes from Smiley
Define two classes smiley and Frowny, which are both derived from class Circle and have two eyes and a mouth. Next, derive classes from Smiley and Frowny which add an appropriate hat to each. The main should create a Hat_frowny object and a Hat_smiley object and draw them. Name your program hw3pr3.cpp. Show me output also please C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
