subject

3. Create a class Polygon, Polygon has a private member int NumSides. Derive from polygon two classes Rectangle (NumSides=4) and Triangle (NumSides = 3). Rectangle has a private member data int Area, Triangle has a private data int Perimeter. From a menu, allow the user to create a mixed linked list of polygon pointers to polygons, Rectangles and Triangles. When the user has finished adding these to the list, display the list. If the user wants to add a rectangle or a triangle you must allow them to enter the length of the sides so the area and perimeter can be computed.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
You know the right answer?
3. Create a class Polygon, Polygon has a private member int NumSides. Derive from polygon two classe...
Questions
question
Mathematics, 18.11.2020 01:00
question
Health, 18.11.2020 01:00
question
Mathematics, 18.11.2020 01:00
question
Mathematics, 18.11.2020 01:00